about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorDaniel <steew0x8@protonmail.com>2021-11-07 00:13:54 +0100
committerDaniel <steew0x8@protonmail.com>2021-11-07 00:13:54 +0100
commite300a7d8ee1125aaec92c84b2cb29e54dab6e2ff (patch)
treea20456b26514f0ee5543ee31df9a109433eb8ff7
parentd71d7dc9583e96a20c568c1929cbc137516e48ce (diff)
downloadrpncalc-e300a7d8ee1125aaec92c84b2cb29e54dab6e2ff.tar.gz
fix stack showing after list output
-rw-r--r--main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.c b/main.c
index b4e7b48..4f9dd2e 100644
--- a/main.c
+++ b/main.c
@@ -78,8 +78,8 @@ int main() {
 	} else if (strcmp(buf, "list") == 0) {
 	  for (int i = 0; i < s.numel; i++) {
 	    fprintf(s.defout, "[%s]\t->\t%s\n", s.sorted[i].name, s.sorted[i].description);
-	    continue;
 	  }
+	  continue;
 	} else exec(buf, &s);
       }
     } else { /* we found a number */