We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ac5c5d4 commit b4619e8Copy full SHA for b4619e8
Programs/_testembed.c
@@ -342,6 +342,13 @@ static int test_pre_initialization_sys_options(void)
342
(wchar_t *) calloc(warnoption_len+1, sizeof(wchar_t));
343
wchar_t *dynamic_xoption = \
344
(wchar_t *) calloc(xoption_len+1, sizeof(wchar_t));
345
+ if (dynamic_once_warnoption == NULL || dynamic_xoption == NULL) {
346
+ free(dynamic_once_warnoption);
347
+ free(dynamic_xoption);
348
+ error("out of memory allocating warn/x options");
349
+ return 1;
350
+ }
351
+
352
wcsncpy(dynamic_once_warnoption, static_warnoption, warnoption_len+1);
353
wcsncpy(dynamic_xoption, static_xoption, xoption_len+1);
354
0 commit comments