ril_intel: Fix wrong pointer derference for power status

This commit is contained in:
Marcel Holtmann 2017-07-11 10:47:11 -07:00
parent 7756e3700f
commit a78ceff29c
1 changed files with 1 additions and 1 deletions

View File

@ -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);