Make sure fd is always initialized

Test: MemoryIntArray tests pass

bug:35791084

Change-Id: Icf1ea7717d58a23b89f85a798826b2f5e4d47401
This commit is contained in:
Svet Ganov
2017-05-11 16:45:15 -07:00
parent 9e77977ffa
commit 32eee4f19d

View File

@@ -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.