Remove unused variable

This commit is contained in:
Sergey Poznyakoff 2015-12-16 22:24:55 +02:00
parent d650c4bfcc
commit 6e9ebcab71

View file

@ -703,7 +703,6 @@ expvar (struct wordsplit *wsp, const char *str, size_t len,
struct wordsplit_node **ptail, const char **pend, int flg)
{
size_t i = 0;
const char *defstr = NULL;
const char *value;
const char *vptr;
struct wordsplit_node *newnode;
@ -727,7 +726,7 @@ expvar (struct wordsplit *wsp, const char *str, size_t len,
{
size_t j;
defstr = str + i + 1;
/* FIXME: default value ignored: str + i + 1; */
if (find_closing_cbrace (str, i + 1, len, &j))
{
wsp->ws_errno = WRDSE_CBRACE;
@ -737,7 +736,6 @@ expvar (struct wordsplit *wsp, const char *str, size_t len,
}
else if (str[i] == '}')
{
defstr = NULL;
*pend = str + i;
}
else