commit bash-20070830 snapshot

This commit is contained in:
Chet Ramey
2011-12-07 09:11:49 -05:00
parent cb603128ea
commit 9e6c09cbeb
6 changed files with 319 additions and 4 deletions
+4 -1
View File
@@ -170,7 +170,10 @@ strsub (string, pat, rep, global)
temp[templen++] = string[i++];
}
}
temp[templen] = 0;
if (temp)
temp[templen] = 0;
else
temp = savestring (string);
return (temp);
}