summaryrefslogtreecommitdiffstats
path: root/lib/libc/uuid
diff options
context:
space:
mode:
authorpfg <pfg@FreeBSD.org>2016-04-10 19:33:58 +0000
committerpfg <pfg@FreeBSD.org>2016-04-10 19:33:58 +0000
commit6e91d78151e10ed31c475cafe6a1e1f11950c1d9 (patch)
tree6796a0cd32cea8fd5591b7f2c6d10ae7f153ccb9 /lib/libc/uuid
parent1485828b0840fbefcb7789ae54df9650c16fda61 (diff)
downloadFreeBSD-src-6e91d78151e10ed31c475cafe6a1e1f11950c1d9.zip
FreeBSD-src-6e91d78151e10ed31c475cafe6a1e1f11950c1d9.tar.gz
libc: replace 0 with NULL for pointers.
While here also cleanup some surrounding code; particularly drop some malloc() casts. Found with devel/coccinelle. Reviewed by: bde (previous version - all new bugs are mine)
Diffstat (limited to 'lib/libc/uuid')
-rw-r--r--lib/libc/uuid/uuid_to_string.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/uuid/uuid_to_string.c b/lib/libc/uuid/uuid_to_string.c
index f816391..35f8581 100644
--- a/lib/libc/uuid/uuid_to_string.c
+++ b/lib/libc/uuid/uuid_to_string.c
@@ -49,7 +49,7 @@ uuid_to_string(const uuid_t *u, char **s, uint32_t *status)
*status = uuid_s_ok;
/* Why allow a NULL-pointer here? */
- if (s == 0)
+ if (s == NULL)
return;
if (u == NULL) {
OpenPOWER on IntegriCloud