Browse Source

Variable abs shadows on gcc 4.6.3

Just make it a more explicit variable name, absolute
Matt Clarkson 10 năm trước cách đây
mục cha
commit
40dc5c6d81
1 tập tin đã thay đổi với 3 bổ sung3 xóa
  1. 3 3
      src/main.c

+ 3 - 3
src/main.c

@@ -605,7 +605,7 @@ static void set_absolute_path(char *options[],
                               const char *option_name,
                               const char *path_to_civetweb_exe)
 {
-	char path[PATH_MAX] = "", abs[PATH_MAX] = "";
+	char path[PATH_MAX] = "", absolute[PATH_MAX] = "";
 	const char *option_value;
 	const char *p;
 
@@ -633,8 +633,8 @@ static void set_absolute_path(char *options[],
 		strncat(path, option_value, sizeof(path) - strlen(path) - 1);
 
 		/* Absolutize the path, and set the option */
-		IGNORE_UNUSED_RESULT(abs_path(path, abs, sizeof(abs)));
-		set_option(options, option_name, abs);
+		IGNORE_UNUSED_RESULT(abs_path(path, absolute, sizeof(absolute)));
+		set_option(options, option_name, absolute);
 	}
 }