summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Svetoslav Ganov <svetoslavganov@google.com> 2017-05-12 17:16:33 +0000
committer Android (Google) Code Review <android-gerrit@google.com> 2017-05-12 17:16:38 +0000
commitb827c5234c3087472885790a89fefec9a1f46eed (patch)
treeaf6d396dc83f0da0c23dd8485da01f42162fb7b8
parente96d66dbc122904fa4ed246a5db10dddabcb2d18 (diff)
parent32eee4f19d54b07ecb891b869a4b1c2297f080ad (diff)
Merge "Make sure fd is always initialized" into oc-dev
-rw-r--r--core/java/android/util/MemoryIntArray.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/util/MemoryIntArray.java b/core/java/android/util/MemoryIntArray.java
index 749cf08c8396..589edbc76643 100644
--- a/core/java/android/util/MemoryIntArray.java
+++ b/core/java/android/util/MemoryIntArray.java
@@ -56,7 +56,7 @@ public final class MemoryIntArray implements Parcelable, Closeable {
private final boolean mIsOwner;
private final long mMemoryAddr;
- private int mFd;
+ private int mFd = -1;
/**
* Creates a new instance.