test_dnd.c: compare a flag correctly.
authorDaniel Juyung Seo <seojuyung2@gmail.com>
Sun, 11 Aug 2013 06:53:31 +0000 (15:53 +0900)
committerDaniel Juyung Seo <seojuyung2@gmail.com>
Sun, 11 Aug 2013 06:53:31 +0000 (15:53 +0900)
This fixes coverity CID 1040041 Wrong operator used (CONSTANT_EXPRESSION_RESULT).

src/bin/test_dnd.c

index 86440b2ffee41a958dcff53651ba17e57030dbce..3ccb130a54657cb1827841e29f6ee29633e44039 100644 (file)
@@ -340,7 +340,7 @@ _gl_obj_mouse_move(
    void *event_info)
 {  /* Cancel any drag waiting to start on timeout */
 
-   if (((Evas_Event_Mouse_Move *)event_info)->event_flags | EVAS_EVENT_FLAG_ON_HOLD)
+   if (((Evas_Event_Mouse_Move *)event_info)->event_flags & EVAS_EVENT_FLAG_ON_HOLD)
      {
         drag_anim_st *anim_st = data;
         anim_st_free(anim_st);