diff options
author | monsta <[email protected]> | 2015-12-25 11:06:54 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2016-01-11 14:27:47 +0300 |
commit | 16328f9cb4a304f43f971fb72400ed409a3b39ee (patch) | |
tree | 96f0c417f1e8c6a1161f167c9b138c11c1dda6ce /src | |
parent | dda5f11e554b4747f34e9f83489212990072f2ce (diff) | |
download | caja-16328f9cb4a304f43f971fb72400ed409a3b39ee.tar.bz2 caja-16328f9cb4a304f43f971fb72400ed409a3b39ee.tar.xz |
pathbar: remove unneeded asserts
fixes https://github.com/mate-desktop/caja/issues/490
Diffstat (limited to 'src')
-rw-r--r-- | src/caja-pathbar.c | 7 |
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; |