diff options
author | Arnold D. Robbins <arnold@skeeve.com> | 2017-12-24 21:33:13 +0200 |
---|---|---|
committer | Arnold D. Robbins <arnold@skeeve.com> | 2017-12-24 21:33:13 +0200 |
commit | 6ff9f60e9aac2334c12b19a9df829c83901172a2 (patch) | |
tree | e7f23c5f6152891d1dcef86b8463d676a69052ab /builtin.c | |
parent | ff709d65225e5b7a53254fc39a2a03e1d03d8f17 (diff) | |
parent | f871e6ebc0f88cf1e48ffd4945bc805a3bab2be2 (diff) | |
download | egawk-6ff9f60e9aac2334c12b19a9df829c83901172a2.tar.gz egawk-6ff9f60e9aac2334c12b19a9df829c83901172a2.tar.bz2 egawk-6ff9f60e9aac2334c12b19a9df829c83901172a2.zip |
Merge branch 'gawk-4.2-stable'
Diffstat (limited to 'builtin.c')
-rw-r--r-- | builtin.c | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -1914,7 +1914,7 @@ do_strftime(int nargs) bool do_gmt; NODE *val = NULL; NODE *sub = NULL; - char save; + char save = '\0'; // initialize to avoid compiler warnings static const time_t time_t_min = TYPE_MINIMUM(time_t); static const time_t time_t_max = TYPE_MAXIMUM(time_t); @@ -3790,7 +3790,7 @@ do_dcgettext(int nargs) #if ENABLE_NLS && defined(LC_MESSAGES) && HAVE_DCGETTEXT int lc_cat; char *domain; - char save1, save2; + char save1 = '\0', save2 = '\0'; if (nargs == 3) { /* third argument */ tmp = POP_STRING(); @@ -3850,7 +3850,7 @@ do_dcngettext(int nargs) #if ENABLE_NLS && defined(LC_MESSAGES) && HAVE_DCGETTEXT int lc_cat; char *domain; - char save, save1, save2; + char save = '\0', save1 = '\0', save2 = '\0'; bool saved_end = false; if (nargs == 5) { /* fifth argument */ @@ -3906,8 +3906,7 @@ do_dcngettext(int nargs) if (number == 1) { the_result = string1; reslen = t1->stlen; - } - else { + } else { the_result = string2; reslen = t2->stlen; } @@ -3939,7 +3938,7 @@ do_bindtextdomain(int nargs) /* set defaults */ directory = NULL; domain = TEXTDOMAIN; - char save, save1; + char save = '\0', save1 = '\0'; if (nargs == 2) { /* second argument */ t2 = POP_STRING(); |