fix warnings

This commit is contained in:
Pawel Kolodziejski 2008-07-26 19:24:27 +00:00
parent 7b0f7612f4
commit 6e69ade6bf
6 changed files with 7 additions and 7 deletions

View file

@ -2152,7 +2152,6 @@ static void luaFileFindNext() {
static void luaFileFindFirst() {
const char *path, *extension;
char tmpPath[MAXPATHLEN];
lua_Object pathObj;
DEBUG_FUNCTION();
@ -2164,6 +2163,7 @@ static void luaFileFindFirst() {
path = "";
#ifdef DEFAULT_SAVE_PATH
#if defined(UNIX)
char tmpPath[MAXPATHLEN];
const char *home = getenv("HOME");
if (home && *home && strlen(home) < MAXPATHLEN) {
snprintf(tmpPath, MAXPATHLEN, "%s/%s", home, DEFAULT_SAVE_PATH);