mirror of
https://github.com/ipxe/ipxe
synced 2025-12-23 05:21:49 +03:00
[build] Fix uses of literal 0 as a NULL pointer
Detected using sparse. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user