diff options
author | Alexander von Gluck IV <[email protected]> | 2013-09-26 14:53:28 -0500 |
---|---|---|
committer | Alexander von Gluck IV <[email protected]> | 2013-09-26 14:53:28 -0500 |
commit | 2ccb3362b8895a8d8f5f2011d5187e4782dba088 (patch) | |
tree | 07f87a11f41ae27e55441cf7150f8815b2d0d712 /src/fr-window.c | |
parent | d782c92db5254e7eca56fdbaedb635717bd5878c (diff) | |
download | engrampa-2ccb3362b8895a8d8f5f2011d5187e4782dba088.tar.bz2 engrampa-2ccb3362b8895a8d8f5f2011d5187e4782dba088.tar.xz |
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.
Diffstat (limited to 'src/fr-window.c')
-rw-r--r-- | src/fr-window.c | 2 |
1 files changed, 2 insertions, 0 deletions
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)); |