dont use variables that goes out of scope
Change-Id: Ica5f05e63bb811141314cc24f4f68be245f364f6
This commit is contained in:
parent
92c89bc644
commit
6b25dd99a8
1 changed files with 1 additions and 1 deletions
|
@ -384,6 +384,7 @@ htsbuf_append_and_escape_url(htsbuf_queue_t *hq, const char *s)
|
|||
|
||||
while(1) {
|
||||
const char *esc;
|
||||
char buf[4];
|
||||
C = *c++;
|
||||
|
||||
if((C >= '0' && C <= '9') ||
|
||||
|
@ -396,7 +397,6 @@ htsbuf_append_and_escape_url(htsbuf_queue_t *hq, const char *s)
|
|||
esc = NULL;
|
||||
} else {
|
||||
static const char hexchars[16] = "0123456789ABCDEF";
|
||||
char buf[4];
|
||||
buf[0] = '%';
|
||||
buf[1] = hexchars[(C >> 4) & 0xf];
|
||||
buf[2] = hexchars[C & 0xf];;
|
||||
|
|
Loading…
Add table
Reference in a new issue