summaryrefslogtreecommitdiffstats
path: root/src/net
diff options
context:
space:
mode:
authorMichael Brown2013-04-28 17:51:05 +0200
committerMichael Brown2013-04-28 18:13:44 +0200
commitb9663b80497d8954a2195789c91ba2f27c8e2d6b (patch)
treeab39fb8d86da9a90e4dd79b02e18ceeff3aa13bc /src/net
parent[build] Use -Wno-decl when running sparse (diff)
downloadipxe-b9663b80497d8954a2195789c91ba2f27c8e2d6b.tar.gz
ipxe-b9663b80497d8954a2195789c91ba2f27c8e2d6b.tar.xz
ipxe-b9663b80497d8954a2195789c91ba2f27c8e2d6b.zip
[build] Fix uses of literal 0 as a NULL pointer
Detected using sparse. Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/net')
-rw-r--r--src/net/udp/dns.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/net/udp/dns.c b/src/net/udp/dns.c
index 613541f5a..45f0f07c1 100644
--- a/src/net/udp/dns.c
+++ b/src/net/udp/dns.c
@@ -205,7 +205,7 @@ static char * dns_qualify_name ( const char *string ) {
char *fqdn;
/* Leave unchanged if already fully-qualified or no local domain */
- if ( ( ! localdomain ) || ( strchr ( string, '.' ) != 0 ) )
+ if ( ( ! localdomain ) || ( strchr ( string, '.' ) != NULL ) )
return strdup ( string );
/* Append local domain to name */