Skip to content
Snippets Groups Projects
Commit 7bb41325 authored by Herbert Xu's avatar Herbert Xu
Browse files

[BUILTIN] Remove unnecessary restoration of format string in printf


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: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 0f2b7ee0
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -5,6 +5,7 @@
* Replace open-coded flushall in preadbuffer.
* Add likely tag in outmem.
* Add ifdefs around MEM_OUT handling in outmem.
* Remove unnecessary restoration of format string in printf.
 
2014-10-13 Eric Blake <eblake@redhat.com>
 
Loading
Loading
Loading
Loading
@@ -207,7 +207,6 @@ pc:
if (print_escape_str(start, param, array,
getstr()))
goto out;
*fmt = 'b';
break;
case 'c': {
int p = getchr();
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment