OSDN Git Service

stdio: simplify asprintf()
authorAndré Goddard Rosa <andre.goddard@gmail.com>
Sun, 31 Jan 2010 00:39:00 +0000 (22:39 -0200)
committerJean-Baptiste Queru <jbq@google.com>
Thu, 29 Apr 2010 14:31:44 +0000 (07:31 -0700)
commit6aed4288eba64f8265b98d34fdfd0bc0cd76151d
tree30ef6162d6d4364d27037798f69dd93eb7e35d53
parente734769276045c0cb89d4620fdd4ef35a0e6c335
stdio: simplify asprintf()

... by removing unneeded NULL check, as free() already does it.
By the way, we don't need to set a stack variable back to NULL.

Signed-off-by: André Goddard Rosa <andre.goddard@gmail.com>
Change-Id: Id1f72e872f73366dddcea4abc75885a3d9a318c6
libc/stdio/asprintf.c