[gvfs] proxy volume monitor: Fix reversed checks



commit be9e0d04839ae94518b1131dd848eb3ad3bee65f
Author: Tomas Bzatek <tbzatek redhat com>
Date:   Mon Aug 15 13:52:00 2011 +0200

    proxy volume monitor: Fix reversed checks
    
    Found by Coverity Scan analysis

 monitor/proxy/gproxyvolumemonitor.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/monitor/proxy/gproxyvolumemonitor.c b/monitor/proxy/gproxyvolumemonitor.c
index f52ac11..7217a84 100644
--- a/monitor/proxy/gproxyvolumemonitor.c
+++ b/monitor/proxy/gproxyvolumemonitor.c
@@ -289,7 +289,7 @@ get_volume_for_uuid (GVolumeMonitor *volume_monitor, const char *uuid)
   found_volume = NULL;
   g_hash_table_iter_init (&hash_iter, monitor->volumes);
   while (g_hash_table_iter_next (&hash_iter, NULL, (gpointer) &volume) &&
-         found_volume != NULL)
+         found_volume == NULL)
     {
       char *_uuid;
       _uuid = g_volume_get_uuid (volume);
@@ -321,7 +321,7 @@ get_mount_for_uuid (GVolumeMonitor *volume_monitor, const char *uuid)
   found_mount = NULL;
   g_hash_table_iter_init (&hash_iter, monitor->mounts);
   while (g_hash_table_iter_next (&hash_iter, NULL, (gpointer) &mount) &&
-         found_mount != NULL)
+         found_mount == NULL)
     {
       char *_uuid;
       _uuid = g_mount_get_uuid (mount);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]