On Fri, Mar 7, 2014 at 5:52 AM, Lars Winterfeld <lars.winterfeld@xxxxxxxxxxxxx> wrote:
The second alternative would be to introduce a new function like
int foo_failed(struct bar* p) {
// clean p
return -1;
}
and then inside the "int foo()":
if(a) return foo_failed(p);
instead of
if(a) goto fail;
i prefer to fo it this way,example[1]:
[1] https://raw.github.com/mhogomchungu/zuluCrypt/master/zuluCrypt-cli/lib/open_tcrypt.c
[1] https://raw.github.com/mhogomchungu/zuluCrypt/master/zuluCrypt-cli/lib/open_tcrypt.c
_______________________________________________ dm-crypt mailing list dm-crypt@xxxxxxxx http://www.saout.de/mailman/listinfo/dm-crypt