-Wall fix: ambigious else
This commit is contained in:
parent
ed33958521
commit
39b235ef20
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=52262
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user