From 8d897b8ecac49212c761752ea50d1f890f962441 Mon Sep 17 00:00:00 2001 From: Alexander von Gluck IV Date: Tue, 24 Sep 2013 18:46:53 -0500 Subject: filemanager: Add assertion checks to prevent dereferencing ptrs * clang static analysis shows gaps where these calls could rereferencce pointers. Perform an assertion check. --- plugins/filebrowser/pluma-file-browser-store.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'plugins/filebrowser/pluma-file-browser-store.c') diff --git a/plugins/filebrowser/pluma-file-browser-store.c b/plugins/filebrowser/pluma-file-browser-store.c index 6f611105..ba45feff 100644 --- a/plugins/filebrowser/pluma-file-browser-store.c +++ b/plugins/filebrowser/pluma-file-browser-store.c @@ -2480,6 +2480,8 @@ set_virtual_root_from_node (PlumaFileBrowserStore * model, GSList *copy; GtkTreePath *empty = NULL; + g_assert (node != NULL); + prev = node; next = prev->parent; -- cgit v1.2.1