Bug 224662 - bbtools-2006.5.26-22: comparison with string literal
Summary: bbtools-2006.5.26-22: comparison with string literal
Status: RESOLVED DUPLICATE of bug 233655
Alias: None
Product: openSUSE 10.2
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: RC 3
Hardware: All SuSE Linux 10.1
: P5 - None : Normal (vote)
Target Milestone: ---
Assignee: Hendrik Vogelsang
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-11-29 19:54 UTC by David Binderman
Modified: 2007-07-03 15:14 UTC (History)
0 users

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description David Binderman 2006-11-29 19:54:31 UTC
I just tried to build the package bbtools-2006.5.26-22

I got the following warning message from the compiler.

bbrun.c:325: warning: comparison with string literal

The source code is

  if ((char *) data == "ok")

Perhaps the programmer intended

  if (strcmp( (char *) data, "ok") == 0)
Comment 1 Stefan Dirsch 2007-01-16 22:30:33 UTC
Feel free to close as duplicate of Bug #233655.
Comment 2 Hendrik Vogelsang 2007-07-03 15:14:03 UTC

*** This bug has been marked as a duplicate of bug 233655 ***