diff options
author | rbuj <[email protected]> | 2022-07-29 22:55:00 +0200 |
---|---|---|
committer | Luke from DC <[email protected]> | 2022-08-04 18:48:53 +0000 |
commit | 8936a1bbf95bc0ecfb9c7223435b5e7755aa96c7 (patch) | |
tree | bb7fc1fdb5ccf603da97f42cbd9d70d808653fe1 /src/caja-bookmarks-sidebar.c | |
parent | 6d5400b77dab6d8c665575438dc0fd5d07b5370b (diff) | |
download | caja-8936a1bbf95bc0ecfb9c7223435b5e7755aa96c7.tar.bz2 caja-8936a1bbf95bc0ecfb9c7223435b5e7755aa96c7.tar.xz |
caja-bookmark: 'caja_bookmark_get_uri (CajaBookmark *)' may return NULL
Diffstat (limited to 'src/caja-bookmarks-sidebar.c')
-rw-r--r-- | src/caja-bookmarks-sidebar.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/caja-bookmarks-sidebar.c b/src/caja-bookmarks-sidebar.c index fdff6e5d..57aa563d 100644 --- a/src/caja-bookmarks-sidebar.c +++ b/src/caja-bookmarks-sidebar.c @@ -328,10 +328,7 @@ loading_uri_callback (CajaWindowInfo *window, gtk_tree_model_get (model, &iter, BOOKMARKS_SIDEBAR_COLUMN_BOOKMARK, &bookmark, -1); - - uri = caja_bookmark_get_uri (bookmark); - - if (uri != NULL) + if (bookmark && ((uri = caja_bookmark_get_uri (bookmark)) != NULL)) { if (strcmp (uri, location) == 0) { |