mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-18 10:59:45 +00:00
Fixed bug in handle_directory_request, that used the unintialized path variable instead of dir for an error message.
This commit is contained in:
1 parent
a021ebf4c4
commit
22754f403d
1 file changed
+1
-1
+1
-1
@@ -2403,7 +2403,7 @@ static void handle_directory_request(struct mg_connection *conn,
|
||||
|
||||
if ((dirp = opendir(dir)) == NULL) {
|
||||
send_http_error(conn, 500, "Cannot open directory",
|
||||
"Error: opendir(%s): %s", path, strerror(ERRNO));
|
||||
"Error: opendir(%s): %s", dir, strerror(ERRNO));
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user