Don't allocate objects of 0 length
authorSimon Wilkinson <sxw@your-file-system.com>
Fri, 15 Feb 2013 11:37:47 +0000 (11:37 +0000)
committerJeffrey Altman <jaltman@your-file-system.com>
Thu, 21 Feb 2013 16:50:47 +0000 (08:50 -0800)
commit03c04c081a170668e52127be3c150582e458e1ed
tree325ad48ea9e6957b8ec2e518ba9c4f9006e6dba1
parent429b9ec350670a9d51948fff3e555371a45f7905
Don't allocate objects of 0 length

Fix assorted places in the code where we might have asked malloc to
allocate a block of zero length.

Caught by clang-analyzer

Change-Id: I6e1226ad83a52984ee7c53cbed8c867f38e4f866
Reviewed-on: http://gerrit.openafs.org/9155
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Jeffrey Altman <jaltman@your-file-system.com>
src/budb/procs.c
src/libadmin/vos/vosutils.c
src/tools/dumpscan/dumptool.c
src/viced/callback.c
src/xstat/xstat_cm_test.c
src/xstat/xstat_fs_test.c