From d6ae8dce983925a3f1462d111b5243fff3be31ec Mon Sep 17 00:00:00 2001 From: Michael Rose Date: Mon, 19 Aug 2013 10:19:57 +0200 Subject: [PATCH] fix potential memory issue --- testing/toxic/main.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/testing/toxic/main.c b/testing/toxic/main.c index e4165257..c4c84eaf 100644 --- a/testing/toxic/main.c +++ b/testing/toxic/main.c @@ -306,10 +306,7 @@ int main(int argc, char *argv[]) config_err = create_user_config_dir(user_config_dir); if (config_err) { - strcat(DATA_FILE, dir); DATA_FILE = strdup("data"); - - } else { DATA_FILE = malloc(strlen(user_config_dir) + strlen(CONFIGDIR) + strlen("data") + 1); strcpy(DATA_FILE, user_config_dir);