summaryrefslogtreecommitdiffstats
path: root/debuggerd/utility.h
diff options
context:
space:
mode:
authorBrigid Smith <brigidsmith@google.com>2014-07-17 14:52:33 -0700
committerBrigid Smith <brigidsmith@google.com>2014-07-17 15:49:39 -0700
commitc75a02fe3f9abec006a1e88794f2fa12fbeafd8f (patch)
treef465de109947a4a945b2383d5196eb0201925301 /debuggerd/utility.h
parent5328f671b5601b948b6d0b457119fd9eb3478d35 (diff)
downloadsystem_core-c75a02fe3f9abec006a1e88794f2fa12fbeafd8f.tar.gz
system_core-c75a02fe3f9abec006a1e88794f2fa12fbeafd8f.tar.bz2
system_core-c75a02fe3f9abec006a1e88794f2fa12fbeafd8f.zip
Added default constructor for log_t.
Bug: 16357258 Change-Id: I39169b35653d2b717fadbcff75978db01cc375ef
Diffstat (limited to 'debuggerd/utility.h')
-rw-r--r--debuggerd/utility.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/debuggerd/utility.h b/debuggerd/utility.h
index 518305dc5..31684ce50 100644
--- a/debuggerd/utility.h
+++ b/debuggerd/utility.h
@@ -37,7 +37,7 @@
#endif
-typedef struct {
+struct log_t{
/* tombstone file descriptor */
int tfd;
/* Activity Manager socket file descriptor */
@@ -46,7 +46,10 @@ typedef struct {
pid_t crashed_tid;
// The tid of the thread we are currently working with.
pid_t current_tid;
-} log_t;
+
+ log_t()
+ : tfd(-1), amfd(-1), crashed_tid(-1), current_tid(-1) {}
+};
// List of types of logs to simplify the logging decision in _LOG
enum logtype {