diff options
| author | Baptiste Daroussin <bapt@FreeBSD.org> | 2020-01-14 08:18:04 +0000 |
|---|---|---|
| committer | Baptiste Daroussin <bapt@FreeBSD.org> | 2020-01-14 08:18:04 +0000 |
| commit | f9eac425775a4e173bff0b63423fd3f503db6131 (patch) | |
| tree | 4e2f320266e8adff7fb229b2324a51995a5c98a8 /usr.bin/diff | |
| parent | a3337141a47f98e8e3d1a31650fcb3f401cdb4eb (diff) | |
Notes
Diffstat (limited to 'usr.bin/diff')
| -rw-r--r-- | usr.bin/diff/xmalloc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/diff/xmalloc.c b/usr.bin/diff/xmalloc.c index 7c83e4522622..9d02238e87f7 100644 --- a/usr.bin/diff/xmalloc.c +++ b/usr.bin/diff/xmalloc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: xmalloc.c,v 1.9 2015/11/17 18:25:02 tobias Exp $ */ +/* $OpenBSD: xmalloc.c,v 1.10 2019/06/28 05:44:09 deraadt Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland @@ -81,7 +81,7 @@ xasprintf(char **ret, const char *fmt, ...) i = vasprintf(ret, fmt, ap); va_end(ap); - if (i < 0 || *ret == NULL) + if (i == -1) err(2, "xasprintf"); return i; |
