Coverity ASSERT_SIDE_EFFECT - CID 10690

Bug #943706 reported by Product Strategy Coverity Bug Uploader
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
notify-osd (Ubuntu)
New
Medium
Unassigned

Bug Description

This bug is exported from the Coverity Integration Manager on Canonical's servers. For information on how this is done please see this website: https://wiki.ubuntu.com/CanonicalProductStrategy/Coverity
CID: 10690
Checker: ASSERT_SIDE_EFFECT
Category: No category available
CWE definition: No definition available
File: /tmp/buildd/notify-osd-0.9.33/tests/test-dbus.c
Function: test_dbus_get_capabilities()
Code snippet:
 74
 75 int i = 0;
 76 while (caps[i] != NULL)
 77 {
CID 10690 - ASSERT_SIDE_EFFECT
Argument "i++" of g_assert() has a side effect. The containing function might work differently in a non-debug build.
 78 g_assert (!g_strrstr (caps[i++], "actions"));
 79 }
 80 }
 81
 82 static void
 83 test_dbus_get_server_information (gpointer fixture, gconstpointer user_data)

Revision history for this message
Product Strategy Coverity Bug Uploader (coverity-uploader) wrote : notify-osd-oneiric: /tmp/buildd/notify-osd-0.9.33/tests/test-dbus.c

Source file with Coverity annotations.

Changed in notify-osd:
importance: Undecided → Medium
affects: notify-osd → notify-osd (Ubuntu)
no longer affects: notify-osd/oneiric
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.