Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cras_string: Check for error before setting value
In parse_float and parse_double, finish checking the errno values first before setting the parsed value. BUG=b:320231979 TEST=Unit tests Change-Id: I658e50bfd33b9efbc727f6e300eed70efea29278 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/adhd/+/5233200 Tested-by: Baili Deng <bailideng@google.com> Reviewed-by: Li-Yu Yu <aaronyu@google.com> Commit-Queue: Curtis Malainey <cujomalainey@chromium.org> Auto-Submit: Baili Deng <bailideng@google.com> Reviewed-by: Curtis Malainey <cujomalainey@chromium.org> Tested-by: chromeos-cop-builder@chromeos-cop.iam.gserviceaccount.com <chromeos-cop-builder@chromeos-cop.iam.gserviceaccount.com>
- Loading branch information