Hi , please ignore previous mail. Please find below correct patch.
>From 1612773118fc6f475a9db304549d4186438f8df5 Mon Sep 17 00:00:00 2001 From: Manjeet Pawar <manjee...@samsung.com> Date: Wed, 6 May 2015 11:54:02 +0530 Subject: [PATCH] lib/dataascii.c: Fix Invalid number of character in dataascii This patch adds curly brace in if condition to check buffer Signed-off-by: Manjeet Pawar <manjee...@samsung.com> Signed-off-by: Yogesh Gaur <yn.g...@samsung.com> --- lib/dataascii.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dataascii.c b/lib/dataascii.c index 1214ba6..2a196bf 100644 --- a/lib/dataascii.c +++ b/lib/dataascii.c @@ -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); } -- 1.7.9.5 Regards Manjeet ------- Original Message ------- Sender : Cyril Hrubis<chru...@suse.cz> Date : Jun 01, 2015 23:27 (GMT+09:00) Title : Re: [LTP] [PATCH]: Fix Invalid number of character Hi! > This patch adds curly brace in if condition to check buffer > > Signed-off-by: Manjeet Pawar > Signed-off-by: Yogesh Gaur > --- > lib/dataascii.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/lib/dataascii.c b/lib/dataascii.c > index 1214ba6..2a196bf 100644 > --- a/lib/dataascii.c > +++ b/lib/dataascii.c > @@ -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. -- Cyril Hrubis chru...@suse.cz ------------------------------------------------------------------------------ _______________________________________________ Ltp-list mailing list Ltp-list@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/ltp-list