system/vold: cleanup compiler warnings (read of uninitialized memory).

system/vold/ScryptParameters.cpp:48:26: warning: Assigned value is
garbage or undefined
system/vold/ScryptParameters.cpp:48:43: warning: Assigned value is
garbage or undefined
system/vold/ScryptParameters.cpp:48:9: warning: Assigned value is
garbage or undefined

Bug: 26936282
Test: WITH_TIDY=1 WITH_STATIC_ANALYZER=1 mm
Change-Id: I82ffffee48ee94ca5c7f3bbc64059f9cec109a92
This commit is contained in:
Rahul Chaudhry 2016-10-19 17:58:32 -07:00 committed by George Burgess IV
parent 1dfd1df2e3
commit 1a077b440a

View file

@ -20,7 +20,7 @@
#include <string.h>
bool parse_scrypt_parameters(const char* paramstr, int *Nf, int *rf, int *pf) {
int params[3];
int params[3] = {};
char *token;
char *saveptr;
int i;