aboutsummaryrefslogtreecommitdiff
path: root/src/mm-plugin.c
diff options
context:
space:
mode:
authorBen Chan <benchan@chromium.org>2017-07-06 11:30:20 -0700
committerAleksander Morgado <aleksander@aleksander.es>2017-07-07 10:23:46 +0200
commita36347eff794bb5d8c1b4e641a56aa70d7a0ef8c (patch)
treedfd835eb00f17e5e99ff16f11abd747cbddae535 /src/mm-plugin.c
parent22e5b216cb312f35a51939bf6922a23e488f9a32 (diff)
broadband-bearer: 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-plugin.c')
0 files changed, 0 insertions, 0 deletions