GNOME Bugzilla – Bug 438926
invalid comparison of pointer with string literal
Last modified: 2007-05-16 16:31:40 UTC
I: Expression compares a char* pointer with a string literal. Usually a strcmp() was intended by the programmer E: stringcompare gstdv1394src.c: 1077 In function 'gst_dv1394src_uri_set_uri': gstdv1394src.c:1077: warning: comparison with string literal results in unspecified behaviour
Thanks for reporting... this is fixed now in CVS 2007-05-16 Sebastian Dröge <slomo@circular-chaos.org> * ext/raw1394/gstdv1394src.c: (gst_dv1394src_uri_set_uri): Replace direct comparison of a string with the string literal "" with a comparison of the first character with '\0'. Fixes #438926.
Created attachment 88298 [details] [review] gst-plugins-good-bad-comparison.patch Proposed fix.