Skip to content

Commit

Permalink
result to NULL
Browse files Browse the repository at this point in the history
  • Loading branch information
bendailey committed Dec 2, 2015
1 parent 5a07e6f commit 8a8ca00
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib4d_sql/base64.c
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ unsigned char *base64_decode_ex(const char *str, size_t length, int *ret_length,
continue;
} else if (ch == -2) {
free(result);
result=NULL;
return NULL;
}

Expand Down Expand Up @@ -192,6 +193,7 @@ unsigned char *base64_decode_ex(const char *str, size_t length, int *ret_length,
switch(i % 4) {
case 1:
free(result);
result=NULL;
return NULL;
case 2:
k++;
Expand Down

0 comments on commit 8a8ca00

Please sign in to comment.