GNOME Bugzilla – Bug 727957
Broken check for non-empty strings
Last modified: 2014-04-10 12:10:55 UTC
The check for non-empty strings is logically wrong. Instead of asserting (str != NULL && str[0] != '\0'), it does (str != NULL || str[0] != '\0'). So, if str ends up being NULL then we get a crash trying to access str[0]. See: https://bugzilla.redhat.com/show_bug.cgi?id=1064065
Created attachment 273977 [details] [review] Fix check for non-empty strings