freebsd-skq/usr.bin/diff
Baptiste Daroussin f9eac42577 asprintf returns -1, not an arbitrary value < 0. Also upon error the
(very sloppy specification) leaves an undefined value in *ret, so it is
wrong to inspect it, the error condition is enough.

Obtained from:	OpenBSD
MFC after:	3 days
2020-01-14 08:18:04 +00:00
..
tests diff(1): Implement -B/--ignore-blank-lines 2018-08-19 03:57:20 +00:00
diff.1 diff(1): Implement -B/--ignore-blank-lines 2018-08-19 03:57:20 +00:00
diff.c diff(1): Implement -B/--ignore-blank-lines 2018-08-19 03:57:20 +00:00
diff.h diff(1): Implement -B/--ignore-blank-lines 2018-08-19 03:57:20 +00:00
diffdir.c diff: Import fixes from OpenBSD 2018-06-09 21:09:24 +00:00
diffreg.c mkstemp returns -1 2020-01-14 08:16:15 +00:00
Makefile Isolate the pr(1) related code in its own source files 2018-06-09 20:24:17 +00:00
pr.c Fix memory leak 2018-06-12 16:42:11 +00:00
pr.h Isolate the pr(1) related code in its own source files 2018-06-09 20:24:17 +00:00
TODO diff(1): Implement -B/--ignore-blank-lines 2018-08-19 03:57:20 +00:00
xmalloc.c asprintf returns -1, not an arbitrary value < 0. Also upon error the 2020-01-14 08:18:04 +00:00
xmalloc.h