From b4b58f54b640165ef82dcabeb8d70fb4ade475f0 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-widget.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'plugins/filebrowser/pluma-file-browser-widget.c') diff --git a/plugins/filebrowser/pluma-file-browser-widget.c b/plugins/filebrowser/pluma-file-browser-widget.c index f2c54fe9..22c3c3b0 100644 --- a/plugins/filebrowser/pluma-file-browser-widget.c +++ b/plugins/filebrowser/pluma-file-browser-widget.c @@ -1640,6 +1640,8 @@ jump_to_location (PlumaFileBrowserWidget * obj, GList * item, obj->priv->changing_location = TRUE; + g_assert (obj->priv->current_location != NULL); + loc = (Location *) (obj->priv->current_location->data); /* Set the new root + virtual root */ -- cgit v1.2.1