mountoperation-x11: Fix copy/paste thinko

This commit is contained in:
Benjamin Otte 2020-03-05 06:14:58 +01:00
parent 18b011a717
commit 38dcc8f63b

View File

@ -882,7 +882,7 @@ get_name_for_window_with_pid (GtkMountOperationLookupContext *context,
endp = NULL; endp = NULL;
windowid_window = (Window) g_ascii_strtoll (windowid_value, &endp, 10); windowid_window = (Window) g_ascii_strtoll (windowid_value, &endp, 10);
if (endp != NULL || *endp == '\0') if (endp != NULL && *endp == '\0')
{ {
window = windowid_window; window = windowid_window;
} }