# HG changeset patch # User melunko # Date 1176326679 -3600 # Node ID eebe6df8aa118ed81db9401bc180e2fc2d8bc9e5 # Parent c65fa0ad8e5afe457b7d30695c63ff357c241ce5 [svn r532] Fixed segmentation fault at program_info_print/debug function diff -r c65fa0ad8e5a -r eebe6df8aa11 gmyth/src/gmyth_common.c --- a/gmyth/src/gmyth_common.c Wed Apr 11 21:20:44 2007 +0100 +++ b/gmyth/src/gmyth_common.c Wed Apr 11 22:24:39 2007 +0100 @@ -99,11 +99,11 @@ "End time = %s\n" "Path name = %s\n" "File size = %lld\n", - program_info->title->str, - program_info->description->str, + program_info->title ? program_info->title->str : NULL, + program_info->description ? program_info->description->str : NULL, gmyth_util_time_to_string_from_time_val(program_info->startts), gmyth_util_time_to_string_from_time_val(program_info->endts), - program_info->pathname->str, + program_info->pathname ? program_info->pathname->str : NULL, program_info->filesize ); } #endif