-Wall fix: ambigious else

This commit is contained in:
Bill Fumerola 1999-10-15 17:33:24 +00:00
parent ed33958521
commit 39b235ef20
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=52262

View File

@ -81,11 +81,12 @@ mkfullname(const char *s1, const char *s2, const char *s3)
int f;
f = strlen(s1) + strlen(s2) + strlen(s3) + 1;
if (f > bufl)
if (f > bufl) {
if (buf)
buf = (char *)realloc(buf, f);
else
buf = (char *)malloc(f);
}
if (!buf) {
bufl = 0;
return(NULL);