[svn r532] Fixed segmentation fault at program_info_print/debug function trunk
authormelunko
Wed Apr 11 22:24:39 2007 +0100 (2007-04-11)
branchtrunk
changeset 527eebe6df8aa11
parent 526 c65fa0ad8e5a
child 528 4a604de8eaf5
[svn r532] Fixed segmentation fault at program_info_print/debug function
gmyth/src/gmyth_common.c
     1.1 --- a/gmyth/src/gmyth_common.c	Wed Apr 11 21:20:44 2007 +0100
     1.2 +++ b/gmyth/src/gmyth_common.c	Wed Apr 11 22:24:39 2007 +0100
     1.3 @@ -99,11 +99,11 @@
     1.4  	        "End time = %s\n"
     1.5  	        "Path name = %s\n"
     1.6  	        "File size = %lld\n",
     1.7 -	       	program_info->title->str,
     1.8 -	        program_info->description->str, 
     1.9 +	       	program_info->title ? program_info->title->str : NULL,
    1.10 +	        program_info->description ? program_info->description->str : NULL, 
    1.11  	        gmyth_util_time_to_string_from_time_val(program_info->startts),
    1.12  	        gmyth_util_time_to_string_from_time_val(program_info->endts), 
    1.13 -	        program_info->pathname->str,
    1.14 +	        program_info->pathname ? program_info->pathname->str : NULL,
    1.15  	        program_info->filesize );
    1.16  }
    1.17  #endif