summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2001-01-15 16:48:08 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2001-01-15 16:48:08 +0000
commitdf0616f116a54d80daf06c421352f7998570619b (patch)
tree829bf6f0ea3db5b25c0cf77ab5596ce2b57f6164 /usr.bin
parent5168edc4346bf2431e4863a1238eb9feb376d1dd (diff)
oops
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/finger/util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/finger/util.c b/usr.bin/finger/util.c
index 669346aa14b..86b1d491acf 100644
--- a/usr.bin/finger/util.c
+++ b/usr.bin/finger/util.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: util.c,v 1.13 2001/01/10 20:10:36 deraadt Exp $ */
+/* $OpenBSD: util.c,v 1.14 2001/01/15 16:48:07 deraadt Exp $ */
/*
* Copyright (c) 1989 The Regents of the University of California.
@@ -39,7 +39,7 @@
#ifndef lint
/*static char sccsid[] = "from: @(#)util.c 5.14 (Berkeley) 1/17/91";*/
-static char rcsid[] = "$OpenBSD: util.c,v 1.13 2001/01/10 20:10:36 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: util.c,v 1.14 2001/01/15 16:48:07 deraadt Exp $";
#endif /* not lint */
#include <sys/types.h>
@@ -86,7 +86,7 @@ char *
estrdup(char *s)
{
char *p = strdup(s);
- if (p)
+ if (!p)
err(1, "stdup");
return (p);
}