]> git.michaelhowe.org Git - packages/o/openafs.git/commit
budb: don't malloc(0) on error condition in GetText()
authorGarrett Wollman <wollman@csail.mit.edu>
Sun, 15 Jul 2012 18:18:12 +0000 (14:18 -0400)
committerDerrick Brashear <shadow@dementix.org>
Mon, 16 Jul 2012 12:48:00 +0000 (05:48 -0700)
commitf4b2ad4dc974b441819d0113efbb81c537b8ed97
treeee4668ba2d38218a5f9dcf82c1a1a0c904036a83
parent0527cc793054e582ea8be8c0dc76df9e2ca0ab1b
budb: don't malloc(0) on error condition in GetText()

malloc(0) is non-portable (may return a pointer to no space, or it
may return NULL.  Just set the result to NULL without bothering to
call malloc(), as is done earlier in this function.

Change-Id: Ic3562e722113a1409ec7c30bd571e9470b3e092b
Reviewed-on: http://gerrit.openafs.org/7766
Tested-by: BuildBot <buildbot@rampaginggeek.com>
Reviewed-by: Derrick Brashear <shadow@dementix.org>
src/budb/db_text.c