Don't clobber important stuff.

This commit is contained in:
Alcaro 2015-02-10 22:24:38 +01:00
parent 111d4d4bd5
commit 4503c6635f

View File

@ -244,6 +244,7 @@ database_info_list_t *database_info_list_new(const char *rdb_path, const char *q
if (!strcmp(key->string.buff, "crc"))
{
size_t i;
char crc32[PATH_MAX_LENGTH];
for (i = 0; i < val->binary.len; i++)
@ -257,6 +258,7 @@ database_info_list_t *database_info_list_new(const char *rdb_path, const char *q
if (!strcmp(key->string.buff, "sha1"))
{
size_t i;
char sha1[PATH_MAX_LENGTH];
for (i = 0; i < val->binary.len; i++)
@ -270,6 +272,7 @@ database_info_list_t *database_info_list_new(const char *rdb_path, const char *q
if (!strcmp(key->string.buff, "md5"))
{
size_t i;
char md5[PATH_MAX_LENGTH];
for (i = 0; i < val->binary.len; i++)