From 2ccb3362b8895a8d8f5f2011d5187e4782dba088 Mon Sep 17 00:00:00 2001 From: Alexander von Gluck IV Date: Thu, 26 Sep 2013 14:53:28 -0500 Subject: fr-window: Assertion check to prevent ptr dereference * clang static analysis shows that if this function is called with file_list set to NULL, it would be dereferenced. --- ChangeLog | 0 src/fr-window.c | 2 ++ 2 files changed, 2 insertions(+) delete mode 100644 ChangeLog diff --git a/ChangeLog b/ChangeLog deleted file mode 100644 index e69de29..0000000 diff --git a/src/fr-window.c b/src/fr-window.c index 0b36aea..d986b9c 100644 --- a/src/fr-window.c +++ b/src/fr-window.c @@ -8005,6 +8005,8 @@ fr_window_open_files_with_application (FrWindow *window, if (window->priv->activity_ref > 0) return; + g_assert (file_list != NULL); + for (scan = file_list; scan; scan = scan->next) uris = g_list_prepend (uris, g_filename_to_uri (scan->data, NULL, NULL)); -- cgit v1.2.1