Commit Diff


commit - 666f7b101a108aff1b7d4ddf36521f55159db286
commit + 1065461da75da76e9e55d79a8b1c74b7d1f75e00
blob - 72fb0a4237f9d9947232991ee298f261c8dbc38d
blob + db49500a25ff2007eb34f2ecd219ecc9277a6927
--- tog/tog.c
+++ tog/tog.c
@@ -3161,7 +3161,7 @@ add_matched_line(int *wtotal, const char *line, int wl
 		goto done;
 	}
 	seg2 = strdup(exstr + rme);
-	if (seg1 == NULL) {
+	if (seg2 == NULL) {
 		err = got_error_from_errno("strndup");
 		goto done;
 	}