diff options
author | Wayne Davison <wayned@users.sourceforge.net> | 2005-08-16 01:59:43 +0000 |
---|---|---|
committer | Wayne Davison <wayned@users.sourceforge.net> | 2005-08-16 01:59:43 +0000 |
commit | fb047b6ffa8c0c595bd94d2b023be7dda83ae0a6 (patch) | |
tree | 219f7447d68d2ff3831784a010ae96e3d79cd660 | |
parent | 3c92ad4b90ac908f6ca4bb7feed2527f925d77a5 (diff) | |
download | zsh-fb047b6ffa8c0c595bd94d2b023be7dda83ae0a6.tar.gz zsh-fb047b6ffa8c0c595bd94d2b023be7dda83ae0a6.tar.xz zsh-fb047b6ffa8c0c595bd94d2b023be7dda83ae0a6.zip |
Moved declaration of char pointer var to comply with
restrictions of standard C.
-rw-r--r-- | Src/Zle/compcore.c | 4 |
1 files changed, 2 insertions, 2 deletions
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); |