Bug 2497 - rpc_parse/parse_spoolss.c, line 1242: unsigned int compared to zero
rpc_parse/parse_spoolss.c, line 1242: unsigned int compared to zero
Status: CLOSED FIXED
Product: Samba 3.0
Classification: Unclassified
Component: libsmbclient
3.0.12
All All
: P3 normal
: none
Assigned To: Samba Bugzilla Account
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-03-19 11:43 UTC by Jason Mader
Modified: 2005-08-24 10:17 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jason Mader 2005-03-19 11:43:03 UTC
Compiling rpc_parse/parse_spoolss.c with -KPIC
cc-1183 cc: WARNING File = rpc_parse/parse_spoolss.c, Line = 1242
  An unsigned integer is being compared to zero.

        if (version >= 0) { 
                    ^
Comment 1 Jason Mader 2005-03-19 11:43:31 UTC
Since version is an unsigned int, it will always be greater than or equal to
zero, so couldn't this test be eliminated?
Comment 2 Gerald (Jerry) Carter 2005-03-22 07:43:20 UTC
actually version should be an int.
Comment 3 Gerald (Jerry) Carter 2005-08-24 10:17:27 UTC
sorry for the same, cleaning up the database to prevent unecessary reopens of bugs.