summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYorhel <git@yorhel.nl>2009-04-24 18:17:34 +0200
committerYorhel <git@yorhel.nl>2009-04-24 18:17:34 +0200
commit124296ee19a094a2a5218f088ed57ec0a3ed8aeb (patch)
tree9f257b931fc601d7f94ccce59d22f278c5984098
parent731bfccfb5705c531bba506a859a2ff967da82cb (diff)
Fixed infinite calc_process() on error
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index 754fc39..78dbe2e 100644
--- a/src/main.c
+++ b/src/main.c
@@ -155,7 +155,7 @@ int main(int argc, char **argv) {
while(pstate != ST_QUIT) {
if(pstate == ST_CALC)
calc_process();
- if(pstate == ST_DEL)
+ else if(pstate == ST_DEL)
delete_process();
else if(input_handle(0))
break;