[gnome-commander] noop: code cleanup
- From: Piotr Eljasiak <epiotr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] noop: code cleanup
- Date: Mon, 27 Jun 2011 19:43:57 +0000 (UTC)
commit b3267517fa48cc467bc211168e652bb6b1fadbf1
Author: Piotr Eljasiak <epiotr src gnome org>
Date: Mon Jun 27 21:37:39 2011 +0200
noop: code cleanup
src/utils.cc | 7 ++-----
1 files changed, 2 insertions(+), 5 deletions(-)
---
diff --git a/src/utils.cc b/src/utils.cc
index 4693070..ab1d33f 100644
--- a/src/utils.cc
+++ b/src/utils.cc
@@ -742,12 +742,9 @@ GnomeVFSFileSize calc_tree_size (const GnomeVFSURI *dir_uri)
if (!dir_uri)
return -1;
- gchar *dir_uri_str;
+ gchar *dir_uri_str = gnome_vfs_uri_to_string (dir_uri, GNOME_VFS_URI_HIDE_NONE);
- dir_uri_str = gnome_vfs_uri_to_string (dir_uri, GNOME_VFS_URI_HIDE_NONE);
-
- if (!dir_uri_str)
- return -1;
+ g_return_val_if_fail (dir_uri_str != NULL, -1);
GList *list = NULL;
GnomeVFSFileSize size = 0;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]