aboutsummaryrefslogtreecommitdiffstats
path: root/builtin.c
diff options
context:
space:
mode:
Diffstat (limited to 'builtin.c')
-rw-r--r--builtin.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/builtin.c b/builtin.c
index ede02474..4d9e1452 100644
--- a/builtin.c
+++ b/builtin.c
@@ -1928,11 +1928,8 @@ do_strftime(int nargs)
NODE *tmp;
if (nargs == 3) {
- t3 = fixtype(POP_SCALAR());
- if ((t3->flags & NUMBER) != 0)
- do_gmt = ! iszero(t3);
- else
- do_gmt = (t3->stlen > 0);
+ t3 = POP_SCALAR();
+ do_gmt = boolval(t3);
DEREF(t3);
}