Removing some warning lines.

This commit is contained in:
Sanel Zukan 2012-10-23 10:29:20 +00:00
parent 4e0bd12967
commit 61bd398054
2 changed files with 1 additions and 7 deletions

View File

@ -66,8 +66,7 @@ static void close_cb(Fl_Widget*, void*) {
static void save_as_cb(Fl_Widget*, void*) {
const char *p = fl_file_chooser(_("Save details to..."), "Text Files (*.txt)\tAll Files(*)", "dump.txt");
if(!p)
return;
if(!p) return;
/* so we can have EOL */
txt_buf->append("\n");
@ -171,7 +170,6 @@ static void report_cb(Fl_Widget*, void*) {
/* close it since we need the file name */
tmp.close();
txt_buf->savefile(tmp.name());
run_async("%s --gdb-dump %s", bug_tool.c_str(), tmp.name());

View File

@ -82,16 +82,12 @@ bool gdb_output_generate(const char *path, TempFile &t, int pid) {
core_path.printf("%s.%i", CORE_FILE, pid);
if(file_test(core_path.c_str(), FILE_TEST_IS_REGULAR))
core_found = true;
else
E_WARNING(E_STRLOC ": Unable to find %s. Trying 'core'\n", core_path.c_str());
}
if(!core_found) {
core_path = CORE_FILE;
if(file_test(core_path.c_str(), FILE_TEST_IS_REGULAR))
core_found = true;
else
E_WARNING(E_STRLOC ": Unable to find core. Balling out\n");
}
if(!core_found) {