mirror of
https://github.com/cesanta/mongoose.git
synced 2026-10-19 11:09:42 +00:00
Fix mg_unpacked() crash
This commit is contained in:
1 parent
1e1efa2c5e
commit
00c8f8acd0
2 files changed
+4
-2
No files matched your search
+2
-1
@@ -977,7 +977,8 @@ struct packed_file {
|
||||
#if MG_ENABLE_PACKED_FS
|
||||
#else
|
||||
const char *mg_unpack(const char *path, size_t *size, time_t *mtime) {
|
||||
*size = 0, *mtime = 0;
|
||||
if (size != NULL) *size = 0;
|
||||
if (mtime != NULL) *mtime = 0;
|
||||
(void) path;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
+2
-1
@@ -11,7 +11,8 @@ struct packed_file {
|
||||
#if MG_ENABLE_PACKED_FS
|
||||
#else
|
||||
const char *mg_unpack(const char *path, size_t *size, time_t *mtime) {
|
||||
*size = 0, *mtime = 0;
|
||||
if (size != NULL) *size = 0;
|
||||
if (mtime != NULL) *mtime = 0;
|
||||
(void) path;
|
||||
return NULL;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user