commit a2216c84b02eedeeca666be5fb5877490938a2db
parent fcb86ddb8bb96d1961d0970e311ad5aaeb4bbe4c
Author: Joris Vink <joris@coders.se>
Date: Mon, 18 Jan 2016 11:43:10 +0100
Properly check if path was already set.
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/config.c b/src/config.c
@@ -572,7 +572,7 @@ configure_http_body_disk_path(char **argv)
if (argv[1] == NULL)
return (KORE_RESULT_ERROR);
- if (http_body_disk_path != HTTP_BODY_DISK_PATH)
+ if (strcmp(http_body_disk_path, HTTP_BODY_DISK_PATH))
kore_mem_free(http_body_disk_path);
http_body_disk_path = kore_strdup(argv[1]);