stagit

fix regression from last commit

Hiltjo Posthuma contact@arjunchoudhary.com

commit: c239338 parent: dde4588
1 files changed, 1 insertions(+), 1 deletions(-)
Mstagit.c+1-1
M · stagit.c +1, -1
1@@ -708,7 +708,7 @@ writeblob(git_object *obj, const char *fpath, const char *filename, git_off_t fi
2 	if (mkdirp(d))
3 		return -1;
4 
5-	for (p = fpath; *p; p++) {
6+	for (p = fpath, tmp[0] = '\0'; *p; p++) {
7 		if (*p == '/' && strlcat(tmp, "../", sizeof(tmp)) >= sizeof(tmp))
8 			errx(1, "path truncated: '../%s'", tmp);
9 		p++;