aboutsummaryrefslogtreecommitdiff
path: root/src/mm-serial-parsers.c
diff options
context:
space:
mode:
authorBen Chan <benchan@chromium.org>2017-07-06 12:34:53 -0700
committerAleksander Morgado <aleksander@aleksander.es>2017-07-07 10:16:09 +0200
commitd308bbf4c6d9cfbf59c257e5a4c802cba9065906 (patch)
tree0bbb2d984de1ac3debf0153577f621e54f14eb1b /src/mm-serial-parsers.c
parent344d96af44f0c2aa4b31e39fb29c3e76d17b4e4b (diff)
novatel-lte: check error returned by g_task_propagate_error instead
When returning an enum value via g_task_return_int, some code assumes the enum value is always non-negative and thus considers that a negative value implies an error. This assumption could be invalidated if a negative value is later added to the enum. To make it less error prone to future changes, this patch modifies the code to check if the GError argument to g_task_propagate_error is populated instead.
Diffstat (limited to 'src/mm-serial-parsers.c')
0 files changed, 0 insertions, 0 deletions