Dolda2000 GitWeb
/
doldaconnect.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Parse hashes from lstrans.
[doldaconnect.git]
/
daemon
/
client.c
diff --git
a/daemon/client.c
b/daemon/client.c
index
1bf2420
..
bf7a3af
100644
(file)
--- a/
daemon/client.c
+++ b/
daemon/client.c
@@
-178,10
+178,13
@@
struct hash *parsehash(wchar_t *text)
wchar_t *unparsehash(struct hash *hash)
{
wchar_t *unparsehash(struct hash *hash)
{
- wchar_t *buf, *whbuf;
+ static wchar_t *buf = NULL;
+ wchar_t *whbuf;
char *hbuf;
size_t bufsize, bufdata;
char *hbuf;
size_t bufsize, bufdata;
+ if(buf != NULL)
+ free(buf);
buf = NULL;
bufsize = bufdata = 0;
hbuf = base64encode(hash->buf, hash->len);
buf = NULL;
bufsize = bufdata = 0;
hbuf = base64encode(hash->buf, hash->len);