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 3be06fbCopy full SHA for 3be06fb
Programs/_testembed.c
@@ -342,6 +342,16 @@ 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) {
346
+ error("out of memory allocating warnoption");
347
+ return 1;
348
+ }
349
+ if (dynamic_xoption == NULL) {
350
+ free(dynamic_once_warnoption);
351
+ error("out of memory allocating xoption");
352
353
354
+
355
wcsncpy(dynamic_once_warnoption, static_warnoption, warnoption_len+1);
356
wcsncpy(dynamic_xoption, static_xoption, xoption_len+1);
357
0 commit comments