src/filesystem/emscripten/SDL_sysfilesystem.c
changeset 9559 3ca4f4ef7506
parent 9278 8900afb78a19
child 9619 b94b6d0bff0f
equal deleted inserted replaced
9558:4bab88dd387e 9559:3ca4f4ef7506
    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 }