Skip to content

Commit

Permalink
lib/dataascii.c: Fix Invalid number of character in dataascii
Browse files Browse the repository at this point in the history
This patch adds curly brace in if condition to check buffer

Signed-off-by: Manjeet Pawar <[email protected]>
Signed-off-by: Yogesh Gaur <[email protected]>
  • Loading branch information
mpchap authored and metan-ucw committed Jun 4, 2015
1 parent 8c49350 commit 95cc8bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dataascii.c
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ int main(int ac, char **ag)
char *errmsg;

buffer = malloc(size);
if (buffer == NULL)
if (buffer == NULL) {
perror("malloc");
exit(2);
}
Expand Down

0 comments on commit 95cc8bb

Please sign in to comment.