From e65f815333bf27ecc2203840c146e74584f7b0cb Mon Sep 17 00:00:00 2001 From: Joachim Nilsson Date: Mon, 21 Oct 2019 11:15:15 +0200 Subject: [PATCH] Remove unused variable Signed-off-by: Joachim Nilsson --- src/ksym.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/ksym.c b/src/ksym.c index a74465c..7f7483e 100644 --- a/src/ksym.c +++ b/src/ksym.c @@ -682,7 +682,6 @@ char *ExpandKadds(char *line, char *el) char *sl = line; char *kp; char num[15]; - char dlm; sym.offset = 0; sym.size = 0; @@ -728,7 +727,7 @@ char *ExpandKadds(char *line, char *el) strcpy(el, sl); return el; } - dlm = *kp; + strncpy(num, sl + 1, kp - sl - 1); num[kp - sl - 1] = '\0'; value = strtoul(num, NULL, 16);