Mercurial > trustbridge
diff common/strhelp.c @ 183:4def8b263dd3
Fix str_base64_decode
author | Andre Heinecke <aheinecke@intevation.de> |
---|---|
date | Tue, 25 Mar 2014 17:38:06 +0000 |
parents | bf4bfd8843bd |
children | c596568fa45b |
line wrap: on
line diff
--- a/common/strhelp.c Tue Mar 25 17:17:41 2014 +0000 +++ b/common/strhelp.c Tue Mar 25 17:38:06 2014 +0000 @@ -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; }