GNOME Bugzilla – Bug 762961
NULL category causes a segfault
Last modified: 2016-03-02 12:18:56 UTC
Created attachment 322815 [details] [review] don't perform a lookup when the category is NULL fslint.desktop has this as its Categories entry: Categories=System;Filesystem;GTK;;Utility; which causes a problem when get_app_folder () tries to lookup based on the NULL entry.
Review of attachment 322815 [details] [review]: + if (!category) { + continue; I'd rather if (category == NULL) continue; We tend to compare pointers against NULL explicitly, and drop the braces for single lines. With those changes, please push to master, thanks.
Thanks, corrected and pushed.