mirror of
https://github.com/lammertb/libhttp.git
synced 2025-09-04 12:42:09 +03:00
Mask compiler warning in main.c for getcwd() call.
This commit is contained in:
committed by
Thomas Davis
parent
3b241e5864
commit
12d6665bf2
@@ -358,7 +358,7 @@ static void set_absolute_path(char *options[], const char *option_name,
|
|||||||
// be the relative directory for everything.
|
// be the relative directory for everything.
|
||||||
// Extract civetweb executable directory into path.
|
// Extract civetweb executable directory into path.
|
||||||
if ((p = strrchr(path_to_civetweb_exe, DIRSEP)) == NULL) {
|
if ((p = strrchr(path_to_civetweb_exe, DIRSEP)) == NULL) {
|
||||||
getcwd(path, sizeof(path));
|
IGNORE_UNUSED_RESULT(getcwd(path, sizeof(path)));
|
||||||
} else {
|
} else {
|
||||||
snprintf(path, sizeof(path)-1, "%.*s", (int) (p - path_to_civetweb_exe),
|
snprintf(path, sizeof(path)-1, "%.*s", (int) (p - path_to_civetweb_exe),
|
||||||
path_to_civetweb_exe);
|
path_to_civetweb_exe);
|
||||||
|
Reference in New Issue
Block a user