mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-01 12:46:12 +00:00
d/ns: Fix may be used uninitialized warnings
This commit is contained in:
parent
bc8ac9ca3c
commit
2b94b2b165
|
@ -175,9 +175,9 @@ ns_vipd_parse(struct ns_hmd *ns)
|
|||
|
||||
float baseline = try_get_ipd(ns, config_json);
|
||||
|
||||
struct u_ns_vipd_grid *high_grid;
|
||||
struct u_ns_vipd_grid *low_grid;
|
||||
float interp;
|
||||
struct u_ns_vipd_grid *high_grid = {0};
|
||||
struct u_ns_vipd_grid *low_grid = {0};
|
||||
float interp = 0;
|
||||
for (int i = 1; i < temp_data->number_of_ipds; i++) {
|
||||
NS_DEBUG(ns, "looking at %f lower and %f upper\n", temp_data->ipds[i - 1], temp_data->ipds[i]);
|
||||
if ((baseline >= temp_data->ipds[i - 1]) && (baseline <= temp_data->ipds[i])) {
|
||||
|
|
Loading…
Reference in a new issue