projects
/
sdk
/
tools
/
heaptrack.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e3b1fbb
)
Do not add garbadge null-ip's from end-of-line.
author
Milian Wolff
<mail@milianw.de>
Sat, 31 May 2014 23:16:01 +0000
(
01:16
+0200)
committer
Milian Wolff
<mail@milianw.de>
Mon, 2 Jun 2014 09:31:36 +0000
(11:31 +0200)
malloctrace_main.cpp
patch
|
blob
|
history
diff --git
a/malloctrace_main.cpp
b/malloctrace_main.cpp
index
ed632e4
..
414f1f0
100644
(file)
--- a/
malloctrace_main.cpp
+++ b/
malloctrace_main.cpp
@@
-265,9
+265,8
@@
int main(int argc, char** argv)
return 1;
}
lineIn << hex;
- while (lineIn.good()) {
- uintptr_t ip = 0;
- lineIn >> ip;
+ uintptr_t ip = 0;
+ while (lineIn >> ip) {
trace.backtrace.push_back(ip);
}
lineIn << dec;