commit | 6a35bf6ca051f07edf0044278a1bf71b88111320 | [log] [tgz] |
---|---|---|
author | Serhiy Storchaka <storchaka@gmail.com> | Sat Oct 08 09:58:08 2016 +0300 |
committer | Serhiy Storchaka <storchaka@gmail.com> | Sat Oct 08 09:58:08 2016 +0300 |
tree | b4839087ef33c32885cfc968f875bb1a8461df48 | |
parent | 0ea51b18d547e555ffa99df60341431b6b85c0a9 [diff] [blame] |
Silenced compiler warnings.
diff --git a/Modules/getpath.c b/Modules/getpath.c index b239159..18b161c 100644 --- a/Modules/getpath.c +++ b/Modules/getpath.c
@@ -329,11 +329,9 @@ n = fread(rel_builddir_path, 1, MAXPATHLEN, f); rel_builddir_path[n] = '\0'; fclose(f); - if (n >= 0) { - strcpy(exec_prefix, argv0_path); - joinpath(exec_prefix, rel_builddir_path); - return -1; - } + strcpy(exec_prefix, argv0_path); + joinpath(exec_prefix, rel_builddir_path); + return -1; } }