Mailinglist Archive: opensuse-bugs (7993 mails)

< Previous Next >
[Bug 225904] New: goobox-0.9.93-43: comparison with string literal
  • From: bugzilla_noreply@xxxxxxxxxx
  • Date: Mon, 4 Dec 2006 14:38:31 -0700 (MST)
  • Message-id: <bug-225904-21960@xxxxxxxxxxxxxxxxxxxxxxxxx/>
https://bugzilla.novell.com/show_bug.cgi?id=225904

Summary: goobox-0.9.93-43: comparison with string literal
Product: openSUSE 10.2
Version: RC 5
Platform: All
OS/Version: SuSE Other
Status: NEW
Severity: Normal
Priority: P5 - None
Component: Basesystem
AssignedTo: bnc-team-screening@xxxxxxxxxxxxxxxxxxxxxx
ReportedBy: dcb314@xxxxxxxxxxx
QAContact: qa@xxxxxxx


I just tried to build the package goobox-0.9.93-43

I got the following warning message from the compiler.

dlg-ripper.c:368: warning: comparison with string literal

The source code is

if ((scheme == NULL) || (scheme == ""))

I agree with the compiler. Maybe the programmer intended

if ((scheme == NULL) || (scheme[0] == '\0'))


--
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.

< Previous Next >