diff options
Diffstat (limited to 'usr/src/cmd/pgrep/idtab.c')
-rw-r--r-- | usr/src/cmd/pgrep/idtab.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/usr/src/cmd/pgrep/idtab.c b/usr/src/cmd/pgrep/idtab.c index 52d6e88cdb..56db6eab91 100644 --- a/usr/src/cmd/pgrep/idtab.c +++ b/usr/src/cmd/pgrep/idtab.c @@ -24,7 +24,9 @@ * Use is subject to license terms. */ -#pragma ident "%Z%%M% %I% %E% SMI" +/* + * Copyright 2019 Joyent, Inc. + */ #include <libintl.h> #include <string.h> @@ -61,7 +63,8 @@ idtab_append(idtab_t *idt, idkey_t id) if (idt->id_nelems >= idt->id_size) { size = idt->id_size ? idt->id_size * IDTAB_GROW : IDTAB_DEFSIZE; - if (data = realloc(idt->id_data, sizeof (idkey_t) * size)) { + if ((data = realloc(idt->id_data, + sizeof (idkey_t) * size)) != NULL) { idt->id_data = data; idt->id_size = size; } else { |