From de5da5dd988e9e529aa34f85f7603cd6aa923813 Mon Sep 17 00:00:00 2001 From: Scoopta Date: Wed, 4 Sep 2019 15:45:49 -0700 Subject: [PATCH] Changed that check to a NULL check seeing as it'll always be a GDesktopAppInfo --- src/wofi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wofi.c b/src/wofi.c index 7ccb4d7..4b44220 100644 --- a/src/wofi.c +++ b/src/wofi.c @@ -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; }