Commit Diff
--- 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; }