We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 717ad9f commit 234f4c0Copy full SHA for 234f4c0
1 file changed
prism/util/pm_string.c
@@ -182,7 +182,7 @@ pm_string_mapped_init(pm_string_t *string, const char *filepath) {
182
183
if (size == 0) {
184
close(fd);
185
- const uint8_t source[] = "";
+ static const uint8_t source[] = "";
186
*string = (pm_string_t) { .type = PM_STRING_CONSTANT, .source = source, .length = 0 };
187
return PM_STRING_INIT_SUCCESS;
188
}
@@ -278,7 +278,7 @@ pm_string_file_init(pm_string_t *string, const char *filepath) {
278
size_t size = (size_t) sb.st_size;
279
280
281
282
283
284
0 commit comments