diff options
author | Guy Harris <guy@alum.mit.edu> | 2003-10-30 11:56:36 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2003-10-30 11:56:36 +0000 |
commit | 44590a655c900ee0e9656751917f3d8451020eb0 (patch) | |
tree | 8dc078d2d151e338c2ad307eee1a248b67f1ca3b /plugins/asn1 | |
parent | 5560949b1556a297fa11df2791f93bea711f34a9 (diff) |
"strchr()" and the like would be compared against NULL; "strcmp()",
however, is compared against 0.
svn path=/trunk/; revision=8833
Diffstat (limited to 'plugins/asn1')
-rw-r--r-- | plugins/asn1/packet-asn1.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/asn1/packet-asn1.c b/plugins/asn1/packet-asn1.c index f3b39f99ca..7e6bcfbed9 100644 --- a/plugins/asn1/packet-asn1.c +++ b/plugins/asn1/packet-asn1.c @@ -3,7 +3,7 @@ * * Copyright (c) 2003 by Matthijs Melchior <matthijs.melchior@xs4all.nl> * - * $Id: packet-asn1.c,v 1.5 2003/10/29 10:54:17 guy Exp $ + * $Id: packet-asn1.c,v 1.6 2003/10/30 11:56:36 guy Exp $ * * A plugin for: * @@ -2580,7 +2580,7 @@ read_asn1_type_table(char *filename) f = fopen(filename, "rb"); if (f == 0) { - if (strcmp(filename, default_asn1_filename) != NULL || + if (strcmp(filename, default_asn1_filename) != 0 || errno != ENOENT) g_warning("error opening %s, %s", filename, strerror(errno)); return; |