diff options
author | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-15 23:48:50 +0000 |
---|---|---|
committer | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-07-15 23:48:50 +0000 |
commit | 8d6fe0fbee3589e1cc6eb64a442a6a795854bb8d (patch) | |
tree | ea804ca20148f3d24187dc966d41bd782d453e3f /breakpad | |
parent | 7ee3f7254b30ffdc25b1e7a7f2ef48bddd1d782c (diff) | |
download | chromium_src-8d6fe0fbee3589e1cc6eb64a442a6a795854bb8d.zip chromium_src-8d6fe0fbee3589e1cc6eb64a442a6a795854bb8d.tar.gz chromium_src-8d6fe0fbee3589e1cc6eb64a442a6a795854bb8d.tar.bz2 |
Fix incorrect logic in WriteCPUInformation().
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/155605
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@20816 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'breakpad')
-rw-r--r-- | breakpad/linux/minidump_writer.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/breakpad/linux/minidump_writer.cc b/breakpad/linux/minidump_writer.cc index 67cc341..0f463f0 100644 --- a/breakpad/linux/minidump_writer.cc +++ b/breakpad/linux/minidump_writer.cc @@ -668,11 +668,11 @@ class MinidumpWriter { i++) { CpuInfoEntry* entry = &cpu_info_table[i]; if (entry->found) - goto popline; + continue; if (!strncmp(line, entry->info_name, strlen(entry->info_name))) { const char* value = strchr(line, ':'); if (!value) - goto popline; + continue; // the above strncmp only matches the prefix, it might be the wrong // line. i.e. we matched "model name" instead of "model". @@ -685,7 +685,7 @@ class MinidumpWriter { } } if (space_ptr != value) - goto popline; + continue; sscanf(++value, " %d", &(entry->value)); entry->found = true; |