2014-07-22 23:51 GMT+02:00 Sam Roberts <[email protected]>: > a = malloc(); > if(!a) return > > b = malloc(); > if(!b) return > > ^--- every allocation is conscientiously checked for failure, right? > what could be wrong with that code? :-)
It is ok. You just need to replace "return" with "goto error" and do a lot of "if if if" and conditional "if if if" there :) -- Iñaki Baz Castillo <[email protected]> -- You received this message because you are subscribed to the Google Groups "libuv" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/libuv. For more options, visit https://groups.google.com/d/optout.
