add error checking in command_new
authorZachary T Welch <zw@superlucidity.net>
Sat, 28 Nov 2009 18:42:51 +0000 (10:42 -0800)
committerZachary T Welch <zw@superlucidity.net>
Sat, 28 Nov 2009 21:00:39 +0000 (13:00 -0800)
commit8795b8f9df5ba1fd8466a04b515aa5f56c0c4015
tree3266949da5d71d417b81ac2ae8a6219f342153eb
parent42e00bb379fe7591b6d74768a45855ed5cd0c24f
add error checking in command_new

Adds checks for memory allocation failures.  Started to use calloc()
instead of malloc()/memset(), but I got carried away.  This kind of work
should be done throughout the tree, but it's almost hopeless at present.
src/helper/command.c