From 475b0a56e06241ce231e255d2c8850053038798c Mon Sep 17 00:00:00 2001 From: Manish Singh Date: Mon, 13 Apr 1998 09:17:27 +0000 Subject: [PATCH] fix a tiny bug in the xcf loader that would have caused gimp to crash on a * app/xcf.c: fix a tiny bug in the xcf loader that would have caused gimp to crash on a corrupt xcf file -Yosh --- ChangeLog | 5 +++++ app/xcf.c | 4 ++-- app/xcf/xcf.c | 4 ++-- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 81fd60e53f..6811c9b763 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Mon Apr 13 02:12:21 PDT 1998 Manish Singh + + * app/xcf.c: fix a tiny bug in the xcf loader that would have + caused gimp to crash on a corrupt xcf file + Mon Apr 13 01:47:22 PDT 1998 Manish Singh * plug-ins/flarefx/flarefx.c: applied gimp-timecop-980412-0 diff --git a/app/xcf.c b/app/xcf.c index f84413af62..4552c1a0af 100644 --- a/app/xcf.c +++ b/app/xcf.c @@ -328,8 +328,8 @@ xcf_load_invoker (Argument *args) if (info.file_version < N_xcf_loaders) { gimage = (*(xcf_loaders[info.file_version])) (&info); - if (gimage) - success = TRUE; + if (!gimage) + success = FALSE; } else { diff --git a/app/xcf/xcf.c b/app/xcf/xcf.c index f84413af62..4552c1a0af 100644 --- a/app/xcf/xcf.c +++ b/app/xcf/xcf.c @@ -328,8 +328,8 @@ xcf_load_invoker (Argument *args) if (info.file_version < N_xcf_loaders) { gimage = (*(xcf_loaders[info.file_version])) (&info); - if (gimage) - success = TRUE; + if (!gimage) + success = FALSE; } else {