commit 95d136acd37c706e1f4874b6606e5b70917a0d79 from: Stefan Sperling date: Thu Jun 16 21:26:24 2022 UTC fix wrong pointer in NULL check; found by tracey commit - 44a87665e55ea6309b20b37d20574e25de5f50af commit + 95d136acd37c706e1f4874b6606e5b70917a0d79 blob - fec39d15d5917f175ff8bc241cca82954fc1ca96 blob + 36dceb28705dddb875b725d732b6dea27d63158d --- tog/tog.c +++ tog/tog.c @@ -3152,7 +3152,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; }