openafs/tests/volser
Jeffrey Hutzelman d527a80825 Fix unchecked calls to asprintf
The return value of asprintf() is the number of bytes printed, or -1 if there
was an error allocating a large enough buffer.  In the latter case, the value
of the result string is undefined, and so it cannot be counted on to be NULL.

This change fixes numerous places where the result of asprintf is checked
incorrectly (by examining the output pointer and not the return value) or not
at all.

Change-Id: I9fef14d60c096795d59c42798f3906041fb18c86
Reviewed-on: http://gerrit.openafs.org/9978
Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
Reviewed-by: D Brashear <shadow@your-file-system.com>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
2014-12-01 11:27:15 -05:00
..
.gitignore tests: Add tests for the vlserver 2011-07-17 22:26:15 -07:00
Makefile.in TESTS: Skip the volser tests if current hostname maps to the loopback network 2012-09-26 06:46:27 -07:00
vos-man-t tests: make a plan for man page checks 2013-05-01 07:19:01 -07:00
vos-t.c Fix unchecked calls to asprintf 2014-12-01 11:27:15 -05:00