From 514bbb385984c9bd61282815b1c5be19ff3d9d3c Mon Sep 17 00:00:00 2001 From: Sam Hocevar Date: Sat, 9 Sep 2006 14:52:05 +0000 Subject: [PATCH] * Fix a crash in export.c with unknown file formats. --- test/export.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/export.c b/test/export.c index 6e5ddf4..81d0847 100644 --- a/test/export.c +++ b/test/export.c @@ -84,7 +84,7 @@ int main(int argc, char *argv[]) exit(-1); } cv = cucul_import_canvas(tmp, ""); - if(!tmp) + if(!cv) { fprintf(stderr, "%s: `%s' has unknown format\n", argv[0], file); exit(-1);