Skip to content

Commit f0c57dd

Browse files
committed
v2.2 - fix crash when using -min
1 parent 6150f01 commit f0c57dd

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

CHANGELOG

+4
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
2.2 (2025-03-11)
2+
----------------
3+
* Fix crash that can happen sometimes when using -min
4+
15
2.1 (2025-02-12)
26
----------------
37
* If start and end patterns are defined, and -min or -max is used to exclude things by time, then exclude the entire block, rather than just lines within it.

configure.ac

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
AC_INIT([timediff],[2.1],[[email protected]])
1+
AC_INIT([timediff],[2.2],[[email protected]])
22

33
AC_PROG_CC
44
AC_LANG([C])

main.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ char *HandleStartEndBlock(char *RetStr, double secs, char *Line, struct timeval
175175
if ( (! StrValid(Settings.StartStrings)) && (! StrValid(Settings.EndStrings)) )
176176
{
177177
memcpy(PrevTime, CurrTime, sizeof(struct timeval));
178-
printf("%s\n", Line);
178+
if (StrValid(Line)) printf("%s\n", Line);
179179
return(CopyStr(RetStr, ""));
180180
}
181181

0 commit comments

Comments
 (0)