Remove an unnecessary allocation.
authorgraham.gower@gmail.com <graham.gower@gmail.com@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>
Fri, 19 Nov 2010 04:30:47 +0000 (04:30 +0000)
committergraham.gower@gmail.com <graham.gower@gmail.com@e8e0d7a0-c8d9-11dd-a880-a1081c7ac358>
Fri, 19 Nov 2010 04:30:47 +0000 (04:30 +0000)
commitf8980c8d1dd162031290602cb3d494d617ff51ba
tree44bc56cd4eea7de62a76b1c86f601a3c71ac33c8
parent1c98b4bd7f1e6c7ec10f006b39b5bab96fa1149f
Remove an unnecessary allocation.

According to SUS3:
If the value of n is zero on a call to snprintf(), nothing shall be written, the number of bytes that would have been written had n been sufficiently large excluding the terminating null shall be returned, and s may be a null pointer.

git-svn-id: http://opkg.googlecode.com/svn/trunk@583 e8e0d7a0-c8d9-11dd-a880-a1081c7ac358
libopkg/sprintf_alloc.c