about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorKartik K. Agaram <vc@akkartik.com>2021-12-03 17:23:37 -0800
committerKartik K. Agaram <vc@akkartik.com>2021-12-03 17:23:37 -0800
commit8ea7a3bde5b36be313c1813e7463c44167ba53de (patch)
tree6c30c678344d16ed2a17fc05ba893356f51f56f1 /src
parent516ac2fa8efd336093b1b46c82ee8ae0c4bc5061 (diff)
downloadteliva-8ea7a3bde5b36be313c1813e7463c44167ba53de.tar.gz
.
Diffstat (limited to 'src')
-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) {