Reacted on warnings of -Wunused-but-set-variable

This commit is contained in:
Thomas Schmitt 2011-07-03 08:56:56 +00:00
parent 43e781ec98
commit 2135ec2704
2 changed files with 3 additions and 4 deletions

View File

@ -506,7 +506,6 @@ ex:;
int Xorriso_lst_new_binary(struct Xorriso_lsT **lstring, char *data, int Xorriso_lst_new_binary(struct Xorriso_lsT **lstring, char *data,
int data_len, struct Xorriso_lsT *link, int flag) int data_len, struct Xorriso_lsT *link, int flag)
{ {
int ret;
struct Xorriso_lsT *s; struct Xorriso_lsT *s;
s= TSOB_FELD(struct Xorriso_lsT,1); s= TSOB_FELD(struct Xorriso_lsT,1);
@ -519,10 +518,10 @@ int Xorriso_lst_new_binary(struct Xorriso_lsT **lstring, char *data,
s->text= data; s->text= data;
} else { } else {
if(data_len<=0) if(data_len<=0)
{ret= -1; goto failed;} goto failed;
s->text= Smem_malloC(data_len); s->text= Smem_malloC(data_len);
if(s->text==NULL) if(s->text==NULL)
{ret= -1; goto failed;} goto failed;
if(!(flag&2)) if(!(flag&2))
memcpy(s->text,data,data_len); memcpy(s->text,data,data_len);
} }

View File

@ -1 +1 @@
#define Xorriso_timestamP "2011.07.02.153320" #define Xorriso_timestamP "2011.07.03.085629"