diff options
Diffstat (limited to 'stagit.c')
-rw-r--r-- | stagit.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -190,7 +190,8 @@ printtimeformat(FILE *fp, const git_time *intime, const char *fmt) char out[32]; t = (time_t) intime->time + (intime->offset * 60); - intm = gmtime(&t); + if (!(intm = gmtime(&t))) + return; strftime(out, sizeof(out), fmt, intm); fputs(out, fp); } |