diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2017-07-11 10:47:11 -0700 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2017-07-11 10:47:11 -0700 |
commit | a78ceff29c069231d36f050c19b9419c840344a6 (patch) | |
tree | a044f50047f9b28d17e7935b0dfb9a40f5bc9e48 /plugins/ril_intel.c | |
parent | 7756e3700f424aa26a9a8fb63a40d90b6f8d8496 (diff) | |
download | ofono-a78ceff29c069231d36f050c19b9419c840344a6.tar.gz |
ril_intel: Fix wrong pointer derference for power status
Diffstat (limited to 'plugins/ril_intel.c')
-rw-r--r-- | plugins/ril_intel.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/ril_intel.c b/plugins/ril_intel.c index e644f2f9..9cda8da9 100644 --- a/plugins/ril_intel.c +++ b/plugins/ril_intel.c @@ -365,7 +365,7 @@ static void get_rf_power_status_cb(struct ril_msg *message, gpointer user_data) } power_status = parcel_r_string(&rilp); - if (power_status == NULL || power_status == '\0') + if (power_status == NULL || *power_status == '\0') return; enabled = strtol(power_status, &endptr, 10); |