diff mbox

[3/3] test: validation: system unitalicized variable

Message ID 1439492682-9226-3-git-send-email-mike.holmes@linaro.org
State Superseded
Headers show

Commit Message

Mike Holmes Aug. 13, 2015, 7:04 p.m. UTC
It is possible that a code change leaves s=NULL; default char_ok to
failure

Signed-off-by: Mike Holmes <mike.holmes@linaro.org>
---
 test/validation/system/system.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Bill Fischofer Aug. 13, 2015, 7:57 p.m. UTC | #1
s/unitalicized/uninitialized

Autocorrect strikes again?

On Thu, Aug 13, 2015 at 2:04 PM, Mike Holmes <mike.holmes@linaro.org> wrote:

> It is possible that a code change leaves s=NULL; default char_ok to
> failure
>
> Signed-off-by: Mike Holmes <mike.holmes@linaro.org>
> ---
>  test/validation/system/system.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/test/validation/system/system.c
> b/test/validation/system/system.c
> index 7687f20..2b788d2 100644
> --- a/test/validation/system/system.c
> +++ b/test/validation/system/system.c
> @@ -12,7 +12,7 @@
>
>  void system_test_odp_version_numbers(void)
>  {
> -       int char_ok;
> +       int char_ok = 0;
>         char version_string[128];
>         char *s = version_string;
>
> --
> 2.1.4
>
> _______________________________________________
> lng-odp mailing list
> lng-odp@lists.linaro.org
> https://lists.linaro.org/mailman/listinfo/lng-odp
>
diff mbox

Patch

diff --git a/test/validation/system/system.c b/test/validation/system/system.c
index 7687f20..2b788d2 100644
--- a/test/validation/system/system.c
+++ b/test/validation/system/system.c
@@ -12,7 +12,7 @@ 
 
 void system_test_odp_version_numbers(void)
 {
-	int char_ok;
+	int char_ok = 0;
 	char version_string[128];
 	char *s = version_string;