From 5cff4ff08423cb7347830e6a5ab192e8afed0b67 Mon Sep 17 00:00:00 2001 From: rocky Date: Fri, 17 Mar 2006 16:46:52 +0000 Subject: [PATCH] Address one more glitch - NULL tm_zone's --- test/testiso9660.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/testiso9660.c b/test/testiso9660.c index 632f835e..3ab15e73 100644 --- a/test/testiso9660.c +++ b/test/testiso9660.c @@ -1,5 +1,5 @@ /* - $Id: testiso9660.c,v 1.12 2006/03/17 16:41:04 rocky Exp $ + $Id: testiso9660.c,v 1.13 2006/03/17 16:46:52 rocky Exp $ Copyright (C) 2003, 2006 Rocky Bernstein @@ -98,7 +98,7 @@ time_compare(struct tm *p_tm1, struct tm *p_tm2) p_tm1->tm_gmtoff, p_tm2->tm_gmtoff); okay=false; } - if (p_tm1 != p_tm2) { + if (p_tm1 != p_tm2 && p_tm1 && p_tm2) { if (strcmp(p_tm1->tm_zone, p_tm2->tm_zone) != 0) { printf("Time Zone values. get: %s, set %s\n", p_tm1->tm_zone, p_tm2->tm_zone);