about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--src/lua.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lua.c b/src/lua.c
index 5945733..12a4c2a 100644
--- a/src/lua.c
+++ b/src/lua.c
@@ -1155,9 +1155,10 @@ static int pmain (lua_State *L) {
   if (has_v) print_version();
   s->status = runargs(L, argv, (image > 0) ? image : s->argc);
   if (s->status != 0) return 0;
-  if (image)
+  if (image) {
     s->status = handle_image(L, argv, image);
-  if (s->status != 0) return 0;
+    if (s->status != 0) return 0;
+  }
   if (has_i)
     dotty(L);
   else if (image == 0 && !has_e && !has_v) {