diff options
author | icculus <icculus@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2009-09-15 05:50:55 +0000 |
---|---|---|
committer | icculus <icculus@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2009-09-15 05:50:55 +0000 |
commit | 63fd3b0e5a7596b7af6edf4b0c5db0ae98bc2153 (patch) | |
tree | 42a6c6bb01e1fa78fe90efed32039879260ac9a3 /code | |
parent | 5a2e1890226bfa015f2825ddfb81d23cc2d6bd88 (diff) | |
download | ioquake3-aero-63fd3b0e5a7596b7af6edf4b0c5db0ae98bc2153.tar.gz ioquake3-aero-63fd3b0e5a7596b7af6edf4b0c5db0ae98bc2153.zip |
Fixed compiler warning (glibc complains if you don't check getcwd() retval).
git-svn-id: svn://svn.icculus.org/quake3/trunk@1618 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code')
-rw-r--r-- | code/tools/asm/cmdlib.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/code/tools/asm/cmdlib.c b/code/tools/asm/cmdlib.c index 9b579f2..f7171ee 100644 --- a/code/tools/asm/cmdlib.c +++ b/code/tools/asm/cmdlib.c @@ -396,10 +396,12 @@ void Q_getwd (char *out) int i = 0; #ifdef WIN32 - _getcwd (out, 256); + if (_getcwd (out, 256) == NULL) + strcpy(out, "."); /* shrug */ strcat (out, "\\"); #else - getcwd (out, 256); + if (getcwd (out, 256) == NULL) + strcpy(out, "."); /* shrug */ strcat (out, "/"); #endif |