| View previous topic :: View next topic |
| Author |
Message |
cmouse Voice
Joined: 25 Nov 2009 Posts: 1
|
Posted: Wed Nov 25, 2009 6:18 am Post subject: Small coding error |
|
|
chanprog.c: In function ‘isowner’:
chanprog.c:671: warning: the address of ‘owner’ will always evaluate as ‘true’
if (!owner || !name)
return 0;
makes no sense. it will always evaluate true, since owner is extern char owner[]. Perhaps insted just check
if (!name)
return 0; |
|
| Back to top |
|
 |
Pixelz Voice

Joined: 15 Jun 2005 Posts: 24 Location: EFnet
|
Posted: Wed Nov 25, 2009 6:26 am Post subject: |
|
|
| This is fixed in CVS. |
|
| Back to top |
|
 |
pseudo Halfop
Joined: 23 Nov 2009 Posts: 88 Location: Bulgaria
|
|
| Back to top |
|
 |
|