From a095dcd6bfd6c75e13684b91f4e5062bdf47d5e5 Mon Sep 17 00:00:00 2001 From: Joao Matos Date: Thu, 4 Apr 2019 10:40:39 -0600 Subject: [PATCH] libs/libc/misc/lib_utsname.c: Fixed return code in uname(). --- libs/libc/misc/lib_utsname.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/libc/misc/lib_utsname.c b/libs/libc/misc/lib_utsname.c index 07f4b074ff..c14bab0605 100644 --- a/libs/libc/misc/lib_utsname.c +++ b/libs/libc/misc/lib_utsname.c @@ -93,7 +93,7 @@ int uname(FAR struct utsname *name) { - int ret = 1; + int ret = 0; /* Copy the strings. Assure that each is NUL terminated. */