Skip to content

Commit 08499f5

Browse files
committed
patch 8.1.1133: compiler warning for uninitialized struct member
Problem: Compiler warning for uninitialized struct member. (Yegappan Lakshmanan) Solution: Add initializer field.
1 parent 616aeef commit 08499f5

2 files changed

Lines changed: 3 additions & 1 deletion

File tree

src/globals.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -320,7 +320,7 @@ EXTERN int want_garbage_collect INIT(= FALSE);
320320
EXTERN int garbage_collect_at_exit INIT(= FALSE);
321321

322322
// Script CTX being sourced or was sourced to define the current function.
323-
EXTERN sctx_T current_sctx INIT(= {0 COMMA 0 COMMA 0});
323+
EXTERN sctx_T current_sctx INIT(= {0 COMMA 0 COMMA 0 COMMA 0});
324324
#endif
325325

326326
EXTERN int did_source_packages INIT(= FALSE);

src/version.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -771,6 +771,8 @@ static char *(features[]) =
771771

772772
static int included_patches[] =
773773
{ /* Add new patch number below this line */
774+
/**/
775+
1133,
774776
/**/
775777
1132,
776778
/**/

0 commit comments

Comments
 (0)