diff options
author | Herbert Xu <herbert@gondor.apana.org.au> | 2014-10-27 15:53:48 +0800 |
---|---|---|
committer | Ben Hutchings <ben@decadent.org.uk> | 2020-03-28 21:42:54 +0000 |
commit | 8bd3bf48d7a5893496646bf82325d4fc30d77321 (patch) | |
tree | eebbda31383fa9478224070e55dbaa799b870cf2 | |
parent | 5064a7b95ea5c2308b816818e513a0fbb363dc3a (diff) | |
download | klibc-8bd3bf48d7a5893496646bf82325d4fc30d77321.tar.gz |
[klibc] dash: [BUILTIN] Remove unnecessary restoration of format string in printf
[ dash commit 7bb413255368e94395237d789f522891093c5774 ]
Currently we try to preserve the format string which is stored in
argv after temporarily modifying it. This is unnecessary as it's
only ever used once. This patch gets rid of it.
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
-rw-r--r-- | usr/dash/bltin/printf.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/usr/dash/bltin/printf.c b/usr/dash/bltin/printf.c index d49d44542240d..5cd34a198384d 100644 --- a/usr/dash/bltin/printf.c +++ b/usr/dash/bltin/printf.c @@ -209,7 +209,6 @@ pc: if (print_escape_str(start, param, array, getstr())) goto out; - *fmt = 'b'; break; case 'c': { int p = getchr(); |