From 9c72d5971ff7812a7927f7f7e78a355e666aaabf Mon Sep 17 00:00:00 2001 From: rocky Date: Mon, 13 Feb 2006 01:59:28 +0000 Subject: [PATCH] udf_time.c: make sure offset is initialzed (Darwin doesn'thave TIMEZONE var). .cvsignore: add .gdb_history --- example/.cvsignore | 1 + lib/udf/udf_time.c | 2 +- src/.cvsignore | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/example/.cvsignore b/example/.cvsignore index fac1bd4e..70bfa237 100644 --- a/example/.cvsignore +++ b/example/.cvsignore @@ -1,5 +1,6 @@ .cvsignore .deps +.gdb_history .libs Makefile Makefile.in diff --git a/lib/udf/udf_time.c b/lib/udf/udf_time.c index b74317d2..b0c8d263 100644 --- a/lib/udf/udf_time.c +++ b/lib/udf/udf_time.c @@ -156,7 +156,7 @@ udf_timespec_to_stamp(const struct timespec ts, udf_timestamp_t *dest) { long int days, rem, y; const unsigned short int *ip; - int16_t offset; + int16_t offset = 0; int16_t tv_sec; #ifdef HAVE_TIMEZONE_VAR diff --git a/src/.cvsignore b/src/.cvsignore index dd153d9c..1abb3165 100644 --- a/src/.cvsignore +++ b/src/.cvsignore @@ -1,4 +1,5 @@ .deps +.gdb_history .libs Makefile Makefile.in