Skip to content

Commit

Permalink
Ensure local variables are initialized (compiler warnings)
Browse files Browse the repository at this point in the history
  • Loading branch information
kamahen committed Mar 5, 2024
1 parent e58ebbf commit e1d0db8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions libcds/tests/testLCP.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ bool testLCP(LCP *s1, LCP *s2, TextIndex *csa){


int main(int argc, char *argv[]){
char *text;
size_t length;
char *text = nullptr;
size_t length = 0;
LCP *lcp_naive=NULL;
LCP *lcp=NULL;

Expand Down
4 changes: 2 additions & 2 deletions libcds/tests/testNPR.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ bool testNPR(NPR *npr, LCP *lcp, TextIndex *csa, size_t *naive_nsv, size_t *nai


int main(int argc, char *argv[]){
char *text;
size_t length;
char *text = nullptr;
size_t length = 0;
LCP *lcp = NULL;
NPR *npr = NULL;

Expand Down

0 comments on commit e1d0db8

Please sign in to comment.