X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fmain.c;h=470d67d2b22074bc9439e00667351683eed879f7;hb=0e847a9762cd2399b4b3aeda25cab26380455abe;hp=74d5d27e2b334e53920b4555cd7650efd7346fa0;hpb=01de7d16f1e8dfdf00a31de19e3719b45752eb4d;p=collection4.git diff --git a/src/main.c b/src/main.c index 74d5d27..470d67d 100644 --- a/src/main.c +++ b/src/main.c @@ -114,7 +114,10 @@ static int handle_request (void) /* {{{ */ for (i = 0; i < actions_num; i++) { if (strcmp (action, actions[i].name) == 0) + { status = (*actions[i].callback) (); + break; + } } if (i >= actions_num)