From fc9b6571f3c21b76207d260101b35a3de07074f5 Mon Sep 17 00:00:00 2001 From: tTh Date: Sun, 24 Mar 2024 15:24:09 +0100 Subject: [PATCH] add a little warning --- tools/fimgfilters.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/fimgfilters.c b/tools/fimgfilters.c index 5038db2..904f1a9 100644 --- a/tools/fimgfilters.c +++ b/tools/fimgfilters.c @@ -36,6 +36,10 @@ fprintf(stderr, ">>> %s ( '%s' '%s' %d )\n", __func__, infname, outfname, type); fimg_show_filter(NULL, &filtre); #endif +if (0 != type) { + fprintf(stderr, "%s: bad type %d\n", __func__, type); + } + if ((foo = fimg_create_from_dump(infname, &src))) { fprintf(stderr, "read error on '%s' is %d\n", infname, foo); exit(2);