Commit Diff


commit - 20282b029acc164f2067a9ab57fb8ab9a931d25c
commit + 367ddf287199811d99fe2e9c1db9e7389425b0ac
blob - 17dcaead07084e8929e136a76c67ee632353275d
blob + ce1b254e1f4ae519df700e3c27df76b82dc3d652
--- tog/tog.c
+++ tog/tog.c
@@ -1241,7 +1241,9 @@ expand_tab(char **ptr, const char *src)
 
 		if (c == '\t') {
 			size_t nb = TABSIZE - sz % TABSIZE;
-			char *p = realloc(dst, n + nb);
+			char *p;
+
+			p = realloc(dst, n + nb);
 			if (p == NULL) {
 				free(dst);
 				return got_error_from_errno("realloc");