diff options
author | 諏訪子 <suwako@076.moe> | 2024-06-17 22:54:24 +0900 |
---|---|---|
committer | 諏訪子 <suwako@076.moe> | 2024-06-17 22:54:24 +0900 |
commit | 3d418e666955695052d25e32c6b2f296b7af6859 (patch) | |
tree | 929c517ab3ad1452c90ecedeee4f6575aa5fe893 /src/host.c | |
parent | cf13f2d8c1622a46f6499dcb762ea2b9370d99fc (diff) |
Linuxでの修正
Diffstat (limited to 'src/host.c')
-rw-r--r-- | src/host.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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"; |