Index: base/process_util_linux.cc |
=================================================================== |
--- base/process_util_linux.cc (revision 30080) |
+++ base/process_util_linux.cc (working copy) |
@@ -262,7 +262,7 @@ |
int private_kb = 0; |
int pss_kb = 0; |
bool have_pss = false; |
- if (!file_util::ReadFileToString(stat_file, &smaps)) |
+ if (!file_util::ReadFileToString(stat_file, &smaps) || smaps.length() == 0) |
return false; |
StringTokenizer tokenizer(smaps, ":\n"); |