aboutsummaryrefslogtreecommitdiffstats
path: root/extension/time.c
diff options
context:
space:
mode:
Diffstat (limited to 'extension/time.c')
-rw-r--r--extension/time.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/extension/time.c b/extension/time.c
index 09e71d0e..a12a05d6 100644
--- a/extension/time.c
+++ b/extension/time.c
@@ -116,7 +116,7 @@ do_sleep(int nargs, awk_value_t *result)
if (do_lint && nargs > 1)
lintwarn(ext_id, "sleep: called with too many arguments");
- if (get_argument(0, AWK_NUMBER, &num) == NULL) {
+ if (! get_argument(0, AWK_NUMBER, &num)) {
update_ERRNO_string("sleep: missing required numeric argument", 1);
return make_number(-1, result);
}