Skip to content

Commit 12baec3

Browse files
committed
Move constant array into read-only memory
1 parent 9dc6661 commit 12baec3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sapi/cli/mime_type_map.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ typedef struct php_cli_server_ext_mime_type_pair {
2727
const char *mime_type;
2828
} php_cli_server_ext_mime_type_pair;
2929

30-
static php_cli_server_ext_mime_type_pair mime_type_map[] = {
30+
static const php_cli_server_ext_mime_type_pair mime_type_map[] = {
3131
{ "ez", "application/andrew-inset" },
3232
{ "aw", "application/applixware" },
3333
{ "atom", "application/atom+xml" },

0 commit comments

Comments
 (0)