NULL may be defined as something such as "(void *)0", rather than just

as 0, so don't use it in a ":" operator where the other arm of the
conditional is integral.

svn path=/trunk/; revision=2422
This commit is contained in:
Guy Harris 2000-09-12 08:38:44 +00:00
parent fd5db0e98d
commit cdbb13b070
1 changed files with 3 additions and 3 deletions

View File

@ -1,7 +1,7 @@
/* packet.c /* packet.c
* Routines for packet disassembly * Routines for packet disassembly
* *
* $Id: packet.c,v 1.106 2000/09/12 07:04:30 sharpe Exp $ * $Id: packet.c,v 1.107 2000/09/12 08:38:44 guy Exp $
* *
* Ethereal - Network traffic analyzer * Ethereal - Network traffic analyzer
* By Gerald Combs <gerald@zing.org> * By Gerald Combs <gerald@zing.org>
@ -539,11 +539,11 @@ col_get_writable(frame_data *fd)
{ {
if (fd) { if (fd) {
return (fd->cinfo ? fd->cinfo->writable : NULL); return (fd->cinfo ? fd->cinfo->writable : FALSE);
} }
return NULL; return FALSE;
} }