Skip to content

Commit

Permalink
system/vold: cleanup compiler warnings (read of uninitialized memory).
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Rahul Chaudhry authored and gburgessiv committed Oct 20, 2016
1 parent 1dfd1df commit 1a077b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ScryptParameters.cpp
Expand Up @@ -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;
Expand Down

0 comments on commit 1a077b4

Please sign in to comment.