--- a/lib/misc.c 2020-05-24 11:11:32.867925303 +0530 +++ b/lib/misc.c 2020-05-24 11:12:22.136929746 +0530 @@ -143,6 +143,8 @@ tempchar; struct passwd *pw; + g_return_val_if_fail(src != NULL, NULL); + pw = NULL; str = g_strdup (src);