Mercurial > trustbridge
diff common/strhelp.c @ 198:56ae02b4a0fc
Merged
author | Sascha Wilde <wilde@intevation.de> |
---|---|
date | Wed, 26 Mar 2014 12:38:10 +0100 |
parents | 4def8b263dd3 |
children | c596568fa45b |
line wrap: on
line diff
--- a/common/strhelp.c Wed Mar 26 12:37:19 2014 +0100 +++ b/common/strhelp.c Wed Mar 26 12:38:10 2014 +0100 @@ -175,10 +175,10 @@ ret = base64_decode((unsigned char *)*dst, dst_size, (unsigned char *)src, src_size); - if (!ret) { + if (ret) { free (*dst); *dst = NULL; - dst_size = 0; + *dst_size = 0; } return ret; }