upnpdescgen.c: move a variable declaration

This commit is contained in:
Thomas Bernard 2021-08-11 14:22:54 +02:00
parent 2f2685af97
commit 4d4121bf40
No known key found for this signature in database
GPG Key ID: DB511043A31ACAAF
1 changed files with 1 additions and 2 deletions

View File

@ -892,7 +892,6 @@ genXML(char * str, int * len, int * tmplen,
{ {
#define GENXML_STACK_SIZE 16 #define GENXML_STACK_SIZE 16
unsigned short i, j; unsigned short i, j;
unsigned long k;
int top; int top;
const char * eltname, *s; const char * eltname, *s;
char c; char c;
@ -968,6 +967,7 @@ genXML(char * str, int * len, int * tmplen,
} }
else else
{ {
unsigned long k = (unsigned long)p[i].data;
/* node with child(ren) */ /* node with child(ren) */
/*printf("<%s>\n", eltname); */ /*printf("<%s>\n", eltname); */
str = strcat_char(str, len, tmplen, '<'); str = strcat_char(str, len, tmplen, '<');
@ -980,7 +980,6 @@ genXML(char * str, int * len, int * tmplen,
str = strcat_str(str, len, tmplen, configid_str); str = strcat_str(str, len, tmplen, configid_str);
} }
str = strcat_char(str, len, tmplen, '>'); str = strcat_char(str, len, tmplen, '>');
k = (unsigned long)p[i].data;
i = k & 0xffff; i = k & 0xffff;
j = i + (k >> 16); j = i + (k >> 16);
if(top < (GENXML_STACK_SIZE - 1)) { if(top < (GENXML_STACK_SIZE - 1)) {