Skip to content
Permalink
Browse files

Fixed error return values in filesystem test program.

  • Loading branch information
philippwiesemann committed May 10, 2016
1 parent 52fec6a commit 31e23d57d39a4f2aab273b2d5ea588c5fe41f03a
Showing with 2 additions and 3 deletions.
  1. +2 −3 test/testfilesystem.c
@@ -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);

0 comments on commit 31e23d5

Please sign in to comment.