Update the previous commit
* src/sign.c (gpgme_op_sign_result): Reformat and take care of failed malloc.
Although _gpgme_debug_trace() is current always true, the code should
be run always and not just in trace mode. Also added error checking
to malloc and strdup. And while at replace some while by for loop for
easier readability.