From 3d418e666955695052d25e32c6b2f296b7af6859 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=AB=8F=E8=A8=AA=E5=AD=90?= Date: Mon, 17 Jun 2024 22:54:24 +0900 Subject: =?UTF-8?q?Linux=E3=81=A7=E3=81=AE=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/host.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/host.c') diff --git a/src/host.c b/src/host.c index 2cc02ff..f10cc52 100644 --- a/src/host.c +++ b/src/host.c @@ -32,7 +32,8 @@ void display_host_model() { #elif defined(__sun) run_command("prtconf -b | awk -F':' '/banner-name/ {printf $2}'"); #elif defined(__linux__) - const char *cmd1, *cmd2; + const char *cmd1 = NULL; + const char *cmd2 = NULL; if (access("/system/app/", F_OK) != -1) { cmd1 = "getprop ro.product.brand"; cmd2 = "getprop ro.product.model"; -- cgit v1.2.3