]> git.refcnt.org Git - colorize.git/commit
Introduce calloc wrappers and zero memory
authorSteven Schubiger <stsc@refcnt.org>
Fri, 26 Apr 2013 21:18:05 +0000 (23:18 +0200)
committerSteven Schubiger <stsc@refcnt.org>
Fri, 26 Apr 2013 21:18:05 +0000 (23:18 +0200)
commitf7130a441748f7ffd2bb828d665146f46311adb0
tree39543e7aa69447c680f53ce3dae23cbf3ce0315f
parent0188bc5a483a8681726b6d492c9a0fce301da993
Introduce calloc wrappers and zero memory

Zero allocated memory of size "color name" struct to allow for
free() to be called for struct members even when not all of them
have been set explicitly yet.  This is necessary since freeing
those might take place prematurely in cleanup() (triggered
via atexit).
colorize.c