diff --git a/src/www_files.c b/src/www_files.c index a32e331..4f6cc17 100644 --- a/src/www_files.c +++ b/src/www_files.c @@ -259,6 +259,8 @@ char *www_create_link(int dir, int sub, int fid) { hashid = (char *)malloc(sizereq); + memset(hashid, 0, sizereq); + if (hashids_encode_v(hashids, hashid, 4, gUser->id, dir, sub, fid) == 0) { hashids_free(hashids); free(hashid);