[gnome-disk-utility] Fix logic error when constructing pool



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]