aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--vhook/imlib2.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vhook/imlib2.c b/vhook/imlib2.c
index 64b1bae687..6c6707b78b 100644
--- a/vhook/imlib2.c
+++ b/vhook/imlib2.c
@@ -249,7 +249,7 @@ void Process(void *ctx, AVPicture *picture, enum PixelFormat pix_fmt, int width,
}
}
- strftime(buff, sizeof(buff), tbp, localtime(&now));
+ strftime(buff, sizeof(buff), tbp ? tbp : "[No data]", localtime(&now));
x = ci->x;
y = ci->y;