projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bcb62a7
)
bc: fix "warning: 's' may be used uninitialized in this function"
author
Denys Vlasenko
<vda.linux@googlemail.com>
Wed, 5 Dec 2018 19:25:03 +0000
(20:25 +0100)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Wed, 5 Dec 2018 19:25:03 +0000
(20:25 +0100)
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
miscutils/bc.c
patch
|
blob
|
history
diff --git
a/miscutils/bc.c
b/miscutils/bc.c
index fbe671fd3da4f5dcb0f97dddda2954d05c6dc1b4..656ecd8929684529c12997bc9cf312cec13a0964 100644
(file)
--- 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;