aboutsummaryrefslogtreecommitdiff
path: root/src/mm-auth-provider.c
diff options
context:
space:
mode:
authorBen Chan <benchan@chromium.org>2017-07-05 22:20:09 -0700
committerAleksander Morgado <aleksander@aleksander.es>2017-07-06 10:50:27 +0200
commitd56621b9a1343fdda784730846f23c805d2145c4 (patch)
tree9e58463d1931585f84e66b162bb356f2534da673 /src/mm-auth-provider.c
parentba3a7f0c69e067f383b459d53507dd77a5d644af (diff)
iface-modem: 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-auth-provider.c')
0 files changed, 0 insertions, 0 deletions