[gtk/wip/otte/for-master: 2/10] mountoperation-x11: Fix copy/paste thinko



commit 38dcc8f63b839dee8cf70983fc73df685bda7e7a
Author: Benjamin Otte <otte redhat com>
Date:   Thu Mar 5 06:14:58 2020 +0100

    mountoperation-x11: Fix copy/paste thinko

 gtk/gtkmountoperation-x11.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtk/gtkmountoperation-x11.c b/gtk/gtkmountoperation-x11.c
index 268354f31b..678d54c64a 100644
--- a/gtk/gtkmountoperation-x11.c
+++ b/gtk/gtkmountoperation-x11.c
@@ -882,7 +882,7 @@ get_name_for_window_with_pid (GtkMountOperationLookupContext *context,
 
           endp = NULL;
           windowid_window = (Window) g_ascii_strtoll (windowid_value, &endp, 10);
-          if (endp != NULL || *endp == '\0')
+          if (endp != NULL && *endp == '\0')
             {
               window = windowid_window;
             }


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