diff options
author | Ruben ten Hove <git@rhtenhove.nl> | 2022-07-07 17:07:57 +0000 |
---|---|---|
committer | Ruben ten Hove <git@rhtenhove.nl> | 2022-07-07 17:07:57 +0000 |
commit | b883faa94260026bc5ba013f82913ba0dbc7321c (patch) | |
tree | 126e1d2c313855e7c9c4cecbc4c41e8a6330180d /test-instr.c | |
parent | c90dd00fc977170048271ca8f4f614b8b625e67a (diff) | |
parent | b1e0d6e6403c6f7f4796af9603e2b528b9776865 (diff) | |
download | afl++-b883faa94260026bc5ba013f82913ba0dbc7321c.tar.gz |
Merge branch 'dev' of https://github.com/AFLplusplus/AFLplusplus into dev
Diffstat (limited to 'test-instr.c')
-rw-r--r-- | test-instr.c | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/test-instr.c b/test-instr.c index b2caa1fe..f304e208 100644 --- a/test-instr.c +++ b/test-instr.c @@ -58,12 +58,21 @@ int main(int argc, char **argv) { // we support three input cases (plus a 4th if stdin is used but there is no // input) - if (buf[0] == '0') - printf("Looks like a zero to me!\n"); - else if (buf[0] == '1') - printf("Pretty sure that is a one!\n"); - else - printf("Neither one or zero? How quaint!\n"); + switch (buf[0]) { + + case '0': + printf("Looks like a zero to me!\n"); + break; + + case '1': + printf("Pretty sure that is a one!\n"); + break; + + default: + printf("Neither one or zero? How quaint!\n"); + break; + + } return 0; |