diff options
author | Denys Vlasenko <vda.linux@googlemail.com> | 2018-12-05 20:25:03 +0100 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2018-12-05 20:25:03 +0100 |
commit | 657d6bb26265205556dcf3191f4a7c6ea26e9689 (patch) | |
tree | 876c43b9808377cb670279f54836322782436147 /miscutils/bc.c | |
parent | bcb62a7f119173f57104ed353d9718c2f9424049 (diff) |
bc: fix "warning: 's' may be used uninitialized in this function"
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'miscutils/bc.c')
-rw-r--r-- | miscutils/bc.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/miscutils/bc.c b/miscutils/bc.c index fbe671fd3..656ecd892 100644 --- a/miscutils/bc.c +++ b/miscutils/bc.c @@ -6987,6 +6987,7 @@ static BcStatus bc_vm_stdin(void) // with a backslash to the parser. The reason for that is because the parser // treats a backslash+newline combo as whitespace, per the bc spec. In that // case, and for strings and comments, the parser will expect more stuff. + s = BC_STATUS_SUCCESS; while (!G.eof && (s = bc_read_line(&buf, ">>> ")) == BC_STATUS_SUCCESS) { char *string = buf.v; |