shithub: choc

Download patch

ref: 71936d184819b519c544e9e90ec820cabfb59765
parent: 9fcbb2be4ebf6f310369b298604acbc44d05de1e
author: Fabian Greffrath <fabian@greffrath.com>
date: Tue Apr 22 15:05:46 EDT 2014

Fix a segfault in i_sdlmusic.c

We are free()ing the const char* a few lines later.

--- a/src/i_sdlmusic.c
+++ b/src/i_sdlmusic.c
@@ -319,7 +319,7 @@
 
     if (!strcmp(configdir, ""))
     {
-        musicdir = "";
+        musicdir = strdup("");
     }
     else
     {