[gnome-disk-utility] Fix logic error when constructing pool
- From: David Zeuthen <davidz src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-disk-utility] Fix logic error when constructing pool
- Date: Tue, 8 Dec 2009 16:33:16 +0000 (UTC)
commit 3f2ef844f90098357ee49ec4891fe73157c162fe
Author: David Zeuthen <davidz redhat com>
Date: Tue Dec 8 11:31:44 2009 -0500
Fix logic error when constructing pool
This fixes a crash in the GVfs gdu volume monitor.
src/gdu/gdu-pool.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gdu/gdu-pool.c b/src/gdu/gdu-pool.c
index f9db8ef..5370901 100644
--- a/src/gdu/gdu-pool.c
+++ b/src/gdu/gdu-pool.c
@@ -1671,7 +1671,7 @@ gdu_pool_new (void)
error = NULL;
pool = gdu_pool_new_for_address (NULL, &error);
- if (pool != NULL) {
+ if (pool == NULL) {
g_printerr ("Error constructing pool: %s\n", error->message);
g_error_free (error);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]