Changed that check to a NULL check seeing as it'll always be a GDesktopAppInfo

This commit is contained in:
Scoopta 2019-09-04 15:45:49 -07:00
parent 9e12533317
commit de5da5dd98

View File

@ -322,7 +322,7 @@ static void* do_drun(void* data) {
}
char* full_path = utils_concat(3, app_dir, "/", entry->d_name);
GDesktopAppInfo* info = g_desktop_app_info_new_from_filename(full_path);
if(!G_IS_DESKTOP_APP_INFO(info) || g_desktop_app_info_get_is_hidden(info) || g_desktop_app_info_get_nodisplay(info)) {
if(info == NULL || g_desktop_app_info_get_is_hidden(info) || g_desktop_app_info_get_nodisplay(info)) {
free(full_path);
continue;
}