src/filesystem/unix/SDL_sysfilesystem.c
changeset 7694 7f965b1a24e0
parent 7693 4907ee4d2883
child 7695 47d12c248988
equal deleted inserted replaced
7693:4907ee4d2883 7694:7f965b1a24e0
    95         }
    95         }
    96     }
    96     }
    97 #elif defined(__SOLARIS__)
    97 #elif defined(__SOLARIS__)
    98     const char *path = getexecname();
    98     const char *path = getexecname();
    99     if ((path != NULL) && (path[0] == '/')) { /* must be absolute path... */
    99     if ((path != NULL) && (path[0] == '/')) { /* must be absolute path... */
   100         retval = SDL_strdup(fullpath);
   100         retval = SDL_strdup(path);
   101         if (!retval) {
   101         if (!retval) {
   102             SDL_OutOfMemory();
   102             SDL_OutOfMemory();
   103             return NULL;
   103             return NULL;
   104         }
   104         }
   105     }
   105     }