replace strdup to g_strdup because g_strdup check input param NULL

No match.