From e828ed2d981fd93e62d3c46051f39ad29dc82a37 Mon Sep 17 00:00:00 2001 From: Martin Nilsson <nilsson@opera.com> Date: Sat, 23 Aug 2014 16:53:26 +0200 Subject: [PATCH] Fixed warning. --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main.c b/src/main.c index 41a08e8563..94935fb3d6 100644 --- a/src/main.c +++ b/src/main.c @@ -97,7 +97,7 @@ static const char *master_file_location = _master_location + CONSTANT_STRLEN(MAS static void set_master(const char *file) { if( master_file_location != _master_location+CONSTANT_STRLEN(MASTER_COOKIE)) - free(master_file_location); + free((void*)master_file_location); #undef strdup /* We can't use dmalloc strdup before pike_memory is initialized. */ master_file_location = strdup( file ); } -- GitLab