summaryrefslogtreecommitdiff
path: root/src/caja-pathbar.c
diff options
context:
space:
mode:
authormonsta <[email protected]>2015-12-25 11:06:54 +0300
committermonsta <[email protected]>2015-12-25 11:06:54 +0300
commit2e4ced0b5fbf3cd5b09ccc74023c946df64fcace (patch)
tree869bc8e5f035638fc9daead56c0aa4d42c352c3d /src/caja-pathbar.c
parent5f53983105c83a649c47283577e4115f2d57d22d (diff)
downloadcaja-2e4ced0b5fbf3cd5b09ccc74023c946df64fcace.tar.bz2
caja-2e4ced0b5fbf3cd5b09ccc74023c946df64fcace.tar.xz
pathbar: remove unneeded asserts
Diffstat (limited to 'src/caja-pathbar.c')
-rw-r--r--src/caja-pathbar.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/caja-pathbar.c b/src/caja-pathbar.c
index 0491284a..667046e6 100644
--- a/src/caja-pathbar.c
+++ b/src/caja-pathbar.c
@@ -326,6 +326,9 @@ caja_path_bar_init (CajaPathBar *path_bar)
g_free (p);
path_bar->home_path = g_file_new_for_path (g_get_home_dir ());
path_bar->root_path = g_file_new_for_path ("/");
+ path_bar->current_path = NULL;
+ path_bar->current_button_data = NULL;
+
desktop_is_home = g_file_equal (path_bar->home_path, path_bar->desktop_path);
g_signal_connect_swapped (caja_preferences, "changed::" CAJA_PREFERENCES_DESKTOP_IS_HOME_DIR,
@@ -1858,8 +1861,8 @@ button_data_file_changed (CajaFile *file,
return;
}
- g_assert (path_bar->current_path != NULL);
- g_assert (path_bar->current_button_data != NULL);
+ g_return_if_fail (path_bar->current_path != NULL);
+ g_return_if_fail (path_bar->current_button_data != NULL);
current_button_data = path_bar->current_button_data;