mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-01 10:27:03 +03:00
fix crash
svn path=/trunk/netsurf/; revision=10644
This commit is contained in:
parent
9201eac26e
commit
18ffa91361
@ -570,8 +570,8 @@ bool directory_convert(struct content *c) {
|
|||||||
strncpy(modtime, "-", sizeof modtime);
|
strncpy(modtime, "-", sizeof modtime);
|
||||||
|
|
||||||
if (directory) {
|
if (directory) {
|
||||||
mimetype = (char*)messages_get(
|
mimetype = strdup((char*)messages_get(
|
||||||
"FileDirectory");
|
"FileDirectory"));
|
||||||
filesize = -1;
|
filesize = -1;
|
||||||
} else {
|
} else {
|
||||||
mimetype = fetch_mimetype(filepath);
|
mimetype = fetch_mimetype(filepath);
|
||||||
|
Loading…
Reference in New Issue
Block a user