From 302fae71de57d368505071637b3b0de539cf296b Mon Sep 17 00:00:00 2001 From: Frank Busse Date: Thu, 26 Nov 2020 20:07:33 +0000 Subject: posix runtime: remove dead branch --- runtime/POSIX/klee_init_env.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'runtime') diff --git a/runtime/POSIX/klee_init_env.c b/runtime/POSIX/klee_init_env.c index f691c743..f45ddf3c 100644 --- a/runtime/POSIX/klee_init_env.c +++ b/runtime/POSIX/klee_init_env.c @@ -26,18 +26,17 @@ static void __emit_error(const char *msg) { /* Helper function that converts a string to an integer, and terminates the program with an error message is the string is not a - proper number */ + proper number */ static long int __str_to_int(char *s, const char *error_msg) { long int res = 0; char c; - if (!*s) __emit_error(error_msg); + if (!*s) + __emit_error(error_msg); while ((c = *s++)) { - if (c == '\0') { - break; - } else if (c>='0' && c<='9') { - res = res*10 + (c - '0'); + if (c >= '0' && c <= '9') { + res = res * 10 + (c - '0'); } else { __emit_error(error_msg); } -- cgit 1.4.1