summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/image.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/image.c b/src/core/image.c
index 4a4e9c2a0..a185b82f4 100644
--- a/src/core/image.c
+++ b/src/core/image.c
@@ -191,7 +191,7 @@ static int image_probe ( struct image *image ) {
image->type = type;
DBGC ( image, "IMAGE %s is %s\n",
image->name, type->name );
- break;
+ return 0;
}
DBGC ( image, "IMAGE %s is not %s: %s\n", image->name,
type->name, strerror ( rc ) );