aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2015-12-16 22:24:55 +0200
committerSergey Poznyakoff <gray@gnu.org.ua>2015-12-16 22:24:55 +0200
commit481198f01233e5e06e4f2ba2cb0d4a7c1b9acc79 (patch)
treeb53a63b4912dc3d1cbf4d2ee3cbad2e39bf386cf
parent13232cb8c0d7f099c0d57445f2995c60928b916c (diff)
downloadgrecs-481198f01233e5e06e4f2ba2cb0d4a7c1b9acc79.tar.gz
grecs-481198f01233e5e06e4f2ba2cb0d4a7c1b9acc79.tar.bz2
Remove unused variable
-rw-r--r--src/wordsplit.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/wordsplit.c b/src/wordsplit.c
index 9047369..b694b64 100644
--- a/src/wordsplit.c
+++ b/src/wordsplit.c
@@ -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

Return to:

Send suggestions and report system problems to the System administrator.