iio: Fix incorrect error debug in iioutils_get_param_float()

The "ret" variable was not set, so we'd end up with "failed: success".
This commit is contained in:
Bastien Nocera
2019-05-10 14:40:36 +02:00
committed by hadess
parent 746271f238
commit 1585412ef7

View File

@@ -211,6 +211,7 @@ iioutils_get_param_float (float *output,
return 0;
}
ret = -errno;
g_debug ("Failed to read float from %s: %s", filename, g_strerror (-ret));
g_free (filename);