From 4be3147d0d2858ae5a242af2f86de3a810a9db77 Mon Sep 17 00:00:00 2001 From: Philip Gladstone Date: Sun, 9 Feb 2003 00:11:42 +0000 Subject: [PATCH] prevent segfault when passed no arguments Originally committed as revision 1558 to svn://svn.ffmpeg.org/ffmpeg/trunk --- vhook/imlib2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vhook/imlib2.c b/vhook/imlib2.c index 64b1bae68..6c6707b78 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; -- 2.11.0