Navigation Menu

Skip to content

Commit

Permalink
Fixed error return values in filesystem test program.
Browse files Browse the repository at this point in the history
  • Loading branch information
philippwiesemann committed May 10, 2016
1 parent 52fec6a commit 31e23d5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions test/testfilesystem.c
Expand Up @@ -32,17 +32,16 @@ main(int argc, char *argv[])
if(base_path == NULL){
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Couldn't find base path: %s\n",
SDL_GetError());
return 0;
return 1;
}

SDL_Log("base path: '%s'\n", base_path);
SDL_free(base_path);

pref_path = SDL_GetPrefPath("libsdl", "testfilesystem");
if(pref_path == NULL){
SDL_LogError(SDL_LOG_CATEGORY_APPLICATION, "Couldn't find pref path: %s\n",
SDL_GetError());
return 0;
return 1;
}
SDL_Log("pref path: '%s'\n", pref_path);
SDL_free(pref_path);
Expand Down

0 comments on commit 31e23d5

Please sign in to comment.