From d7fae40ed2287b94f8bfd237d8d5ba99a6a5ec9c Mon Sep 17 00:00:00 2001 From: rswindell <> Date: Sat, 26 Aug 2017 19:11:17 +0000 Subject: [PATCH] Fix bcc32 build error: Declaration is not allowed here in function key_name --- src/xpdev/ini_file.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/xpdev/ini_file.c b/src/xpdev/ini_file.c index d3e70c4d24..7272b17cb1 100644 --- a/src/xpdev/ini_file.c +++ b/src/xpdev/ini_file.c @@ -187,6 +187,7 @@ static char* key_name(char* p, char** vp) { char* equal; char* colon; + char* tp; *vp=NULL; @@ -220,7 +221,7 @@ static char* key_name(char* p, char** vp) truncnl(*vp); /* "key : value" - truncate new-line chars only */ if(*(*vp) == '"') { /* handled quoted-strings here */ (*vp)++; - char* tp = strrchr(*vp, '"'); + tp = strrchr(*vp, '"'); if(tp != NULL) { *tp = 0; } -- GitLab