summaryrefslogtreecommitdiff
path: root/plugins/sudoers/regress/iolog_path/check_iolog_path.c
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/sudoers/regress/iolog_path/check_iolog_path.c')
-rw-r--r--plugins/sudoers/regress/iolog_path/check_iolog_path.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/plugins/sudoers/regress/iolog_path/check_iolog_path.c b/plugins/sudoers/regress/iolog_path/check_iolog_path.c
index 2b0904473..2d2a8f1c3 100644
--- a/plugins/sudoers/regress/iolog_path/check_iolog_path.c
+++ b/plugins/sudoers/regress/iolog_path/check_iolog_path.c
@@ -74,6 +74,8 @@ do_check(char *dir_in, char *file_in, char *tdir_out, char *tfile_out)
*/
time(&now);
timeptr = localtime(&now);
+ if (timeptr == NULL)
+ fatalx("localtime returned NULL");
strftime(dir_out, sizeof(dir_out), tdir_out, timeptr);
strftime(file_out, sizeof(file_out), tfile_out, timeptr);