[Bug 232114] New: libsecprog-0.8-38: comparison with string literal
https://bugzilla.novell.com/show_bug.cgi?id=232114 Summary: libsecprog-0.8-38: comparison with string literal Product: openSUSE 10.3 Version: unspecified Platform: All OS/Version: SuSE Linux 10.1 Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem AssignedTo: bnc-team-screening@forge.provo.novell.com ReportedBy: dcb314@hotmail.com QAContact: qa@suse.de I just tried to compile package libsecprog-0.8-38 The compiler said libsecprog.c:381: warning: comparison with string literal The source code is if(cmd == NULL || cmd == "") return(NULL); I agree with the compiler. Suggest new code if(cmd == NULL || cmd[ 0] == 0) return(NULL); -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=232114 mhorvath@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- AssignedTo|bnc-team- |thomas@novell.com |screening@forge.provo.novell| |.com | -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=232114 thomas@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|NEW |ASSIGNED -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
https://bugzilla.novell.com/show_bug.cgi?id=232114 thomas@novell.com changed: What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |FIXED ------- Comment #1 from thomas@novell.com 2007-01-09 09:39 MST ------- Thanks. Fixed it in STABLE tree. ------------------------------------------------------------------- Tue Jan 9 17:38:05 CET 2007 - thomas@suse.de - added patch to remove compiler warning (bug #232114) ------------------------------------------------------------------- -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.
participants (1)
-
bugzilla_noreply@novell.com