summaryrefslogtreecommitdiff
path: root/src/host.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/host.c')
-rw-r--r--src/host.c3
1 files changed, 2 insertions, 1 deletions
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";