Mercurial > trustbridge
comparison 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 |
comparison
equal
deleted
inserted
replaced
197:5d380b662198 | 198:56ae02b4a0fc |
---|---|
173 *dst = xmalloc(*dst_size); | 173 *dst = xmalloc(*dst_size); |
174 memset (*dst, 0, *dst_size); | 174 memset (*dst, 0, *dst_size); |
175 | 175 |
176 ret = base64_decode((unsigned char *)*dst, dst_size, | 176 ret = base64_decode((unsigned char *)*dst, dst_size, |
177 (unsigned char *)src, src_size); | 177 (unsigned char *)src, src_size); |
178 if (!ret) { | 178 if (ret) { |
179 free (*dst); | 179 free (*dst); |
180 *dst = NULL; | 180 *dst = NULL; |
181 dst_size = 0; | 181 *dst_size = 0; |
182 } | 182 } |
183 return ret; | 183 return ret; |
184 } | 184 } |