diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2021-04-14 14:54:30 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-04-14 14:54:30 +0200 |
| commit | 6f217d78da0a49b3f3cf99443cfa95a9a6507303 (patch) | |
| tree | 8d790b143339b5b910594dd919754622b0885d40 /src/tools/fileutils.c | |
| parent | 0d38b1cd91d4265042396d3d1dbacac2e662ba00 (diff) | |
| parent | cdf71c4cbc8c07510708cb7396cd1035300f587f (diff) | |
| download | box64-6f217d78da0a49b3f3cf99443cfa95a9a6507303.tar.gz box64-6f217d78da0a49b3f3cf99443cfa95a9a6507303.zip | |
Merge pull request #10 from rajdakin/warnFixRefactor
Warnings and fixes
Diffstat (limited to 'src/tools/fileutils.c')
| -rwxr-xr-x | src/tools/fileutils.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/tools/fileutils.c b/src/tools/fileutils.c index 870bbd1b..18b8dc4d 100755 --- a/src/tools/fileutils.c +++ b/src/tools/fileutils.c @@ -46,7 +46,7 @@ char* ResolveFile(const char* filename, path_collection_t* paths) for (int i=0; i<paths->size; ++i) { if(paths->paths[i][0]!='/') { // not an absolute path... - getcwd(p, sizeof(p)); + if(!getcwd(p, sizeof(p))) return NULL; if(p[strlen(p)-1]!='/') strcat(p, "/"); strcat(p, paths->paths[i]); |