On 07/21/2010 12:23 PM, Michal Toman wrote:
Please review.
Backtrace is only displayed if --backtrace option is specified.
+ const char *timestr = get_crash_data_item_content(crash, FILENAME_TIME).c_str();
+ static char *timeloc = localize_crash_time(timestr);
const not static, timeloc leaking
+static void print_crash_info(const map_crash_data_t& crash, bool show_backtrace){
+ const char *timestr = get_crash_data_item_content(crash, FILENAME_TIME).c_str();
+ const char *timeloc = localize_crash_time(timestr);
ditto