equal
deleted
inserted
replaced
55 |
55 |
56 SDL_snprintf(retval, len, "%s%s/%s/", append, org, app); |
56 SDL_snprintf(retval, len, "%s%s/%s/", append, org, app); |
57 |
57 |
58 if (mkdir(retval, 0700) != 0 && errno != EEXIST) { |
58 if (mkdir(retval, 0700) != 0 && errno != EEXIST) { |
59 SDL_SetError("Couldn't create directory '%s': '%s'", retval, strerror(errno)); |
59 SDL_SetError("Couldn't create directory '%s': '%s'", retval, strerror(errno)); |
|
60 SDL_free(retval); |
60 return NULL; |
61 return NULL; |
61 } |
62 } |
62 |
63 |
63 return retval; |
64 return retval; |
64 } |
65 } |