From 38dcc8f63b839dee8cf70983fc73df685bda7e7a Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Thu, 5 Mar 2020 06:14:58 +0100 Subject: [PATCH] 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; }