From fb047b6ffa8c0c595bd94d2b023be7dda83ae0a6 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Tue, 16 Aug 2005 01:59:43 +0000 Subject: Moved declaration of char pointer var to comply with restrictions of standard C. --- Src/Zle/compcore.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Src/Zle') diff --git a/Src/Zle/compcore.c b/Src/Zle/compcore.c index 66a673dcd..f2e055493 100644 --- a/Src/Zle/compcore.c +++ b/Src/Zle/compcore.c @@ -2483,14 +2483,14 @@ add_match_data(int alt, char *str, char *orig, Cline line, cm->modec = '\0'; if ((flags & CMF_FILE) && orig[0] && orig[strlen(orig) - 1] != '/') { struct stat buf; - char *pb; + char *pb, *blah; int blahl; pb = (char *) zhalloc((cm->prpre ? strlen(cm->prpre) : 0) + 3 + strlen(orig)); sprintf(pb, "%s%s", (cm->prpre ? cm->prpre : "./"), orig); - char *blah = ztrdup(pb); + blah = ztrdup(pb); unmetafy(blah, &blahl); -- cgit 1.4.1