Skip to contentSkip to conversation

: Fix Invalid number of character

PATCH In review Manjeet Pawar 2 participants 2 messages May 28, 2015 – Jun 1, 2015 Library code

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 : Fix Invalid number of character

From: Manjeet Pawar <[email protected]>
Subject: [PATCH] lib/dataascii.c: Fix Invalid number of character in dataascii

This patch adds curly brace in if condition to check buffer

---
 lib/dataascii.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/dataascii.c +1 -1
index 1214ba6..2a196bf 100644
@@ -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);
 	}
Signature · 7 lines
1.7.9.5

------------------------------------------------------------------------------
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list
#1 lore raw

Hi!

Quoted 13 lines

This patch adds curly brace in if condition to check buffer

---
 lib/dataascii.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/dataascii.c +0 -0
index 1214ba6..2a196bf 100644

lib/dataascii.c int main(int ac, char **ag) · line 125

Quoted 8 lines
lib/dataascii.c +1 -1
@@ -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);
 	}

This is obvious fix, but there should be space before the opening curly brace. Please resend.

Signature · 8 lines
Cyril Hrubis
[email protected]

------------------------------------------------------------------------------
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list