x11: Fix erroneous & to be &&
authorKrzesimir Nowak <qdlacz@gmail.com>
Thu, 14 Dec 2017 12:34:06 +0000 (13:34 +0100)
committerBenjamin Otte <otte@redhat.com>
Thu, 14 Dec 2017 12:35:32 +0000 (13:35 +0100)
gdk/x11/gdkselectionoutputstream-x11.c

index fbca038869c1fab41d87b75a3860c8d4a7f75faf..405a49d8c018dddd6278f518fa64474cf31f72e9 100644 (file)
@@ -309,7 +309,7 @@ gdk_x11_selection_output_stream_invoke_flush (gpointer data)
 {
   GdkX11SelectionOutputStream *stream = GDK_X11_SELECTION_OUTPUT_STREAM (data);
 
-  if (gdk_x11_selection_output_stream_needs_flush (stream) &
+  if (gdk_x11_selection_output_stream_needs_flush (stream) &&
       gdk_x11_selection_output_stream_can_flush (stream))
     gdk_x11_selection_output_stream_perform_flush (stream);
 
@@ -615,7 +615,7 @@ gdk_x11_selection_output_stream_xevent (GdkDisplay   *display,
       GDK_NOTE(SELECTION, g_printerr ("%s:%s: got PropertyNotify Delete during INCR\n",
                                       priv->selection, priv->target));
       priv->delete_pending = FALSE;
-      if (gdk_x11_selection_output_stream_needs_flush (stream) &
+      if (gdk_x11_selection_output_stream_needs_flush (stream) &&
           gdk_x11_selection_output_stream_can_flush (stream))
         gdk_x11_selection_output_stream_perform_flush (stream);
       return FALSE;