attempt to fix www_downloads

This commit is contained in:
Andrew Pamment 2018-05-15 12:51:09 +10:00
parent 0d90a3cef5
commit 5100a21163

View File

@ -259,6 +259,8 @@ char *www_create_link(int dir, int sub, int fid) {
hashid = (char *)malloc(sizereq); hashid = (char *)malloc(sizereq);
memset(hashid, 0, sizereq);
if (hashids_encode_v(hashids, hashid, 4, gUser->id, dir, sub, fid) == 0) { if (hashids_encode_v(hashids, hashid, 4, gUser->id, dir, sub, fid) == 0) {
hashids_free(hashids); hashids_free(hashids);
free(hashid); free(hashid);