[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gawk-diffs] [SCM] gawk branch, gawk-4.1-stable, updated. gawk-4.1.0-657
From: |
Arnold Robbins |
Subject: |
[gawk-diffs] [SCM] gawk branch, gawk-4.1-stable, updated. gawk-4.1.0-657-g3fc38ff |
Date: |
Tue, 14 Apr 2015 12:58:08 +0000 |
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "gawk".
The branch, gawk-4.1-stable has been updated
via 3fc38ff001d5a4345def6ce960918612ed209518 (commit)
from a830a63718f1e9a0a812e772bef6e891668afd17 (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
http://git.sv.gnu.org/cgit/gawk.git/commit/?id=3fc38ff001d5a4345def6ce960918612ed209518
commit 3fc38ff001d5a4345def6ce960918612ed209518
Author: Arnold D. Robbins <address@hidden>
Date: Tue Apr 14 15:57:53 2015 +0300
Another bug fix in strftime.
diff --git a/ChangeLog b/ChangeLog
index 2a99f37..6398cbf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,9 @@
add check that time_t is > 0 --- means we're assigning a negative value
to an unsigned time_t. Thanks again to Glaudiston Gomes da Silva
<address@hidden>.
+
+ If localtime() or gmtime() return NULL, return a null string.
+ Thanks to Andrew Schorr.
Unrelated:
* builtin.c (call_sub): Fix for indirect gensub, 3 args now works.
diff --git a/builtin.c b/builtin.c
index f650a9f..fc67094 100644
--- a/builtin.c
+++ b/builtin.c
@@ -1943,6 +1943,9 @@ do_strftime(int nargs)
else
tm = localtime(& fclock);
+ if (tm == NULL)
+ return make_string("", 0);
+
bufp = buf;
bufsize = sizeof(buf);
for (;;) {
-----------------------------------------------------------------------
Summary of changes:
ChangeLog | 3 +++
builtin.c | 3 +++
2 files changed, 6 insertions(+), 0 deletions(-)
hooks/post-receive
--
gawk
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [gawk-diffs] [SCM] gawk branch, gawk-4.1-stable, updated. gawk-4.1.0-657-g3fc38ff,
Arnold Robbins <=