aboutsummaryrefslogtreecommitdiff
path: root/src/mm-iface-modem-simple.c
diff options
context:
space:
mode:
authorBen Chan <benchan@chromium.org>2017-07-06 11:30:21 -0700
committerAleksander Morgado <aleksander@aleksander.es>2017-07-07 10:23:46 +0200
commit627ef274dff34f8e47425529cb3a7534dd47563f (patch)
tree61680b31c87e13f597ff5c86053a1b8bc15ec0d4 /src/mm-iface-modem-simple.c
parenta36347eff794bb5d8c1b4e641a56aa70d7a0ef8c (diff)
plugin: check error returned by g_task_propagate_error instead
mm_plugin_supports_port_finish directly casts the value returned by g_task_propagate_int to MMPluginSupportsResult enum value, which implicitly assumes MM_PLUGIN_SUPPORTS_PORT_UNKNOWN equals to -1. Instead of relying on such an implicit assumption, this patch modifies the code to check if the GError argument to g_task_propagate_error is populated instead.
Diffstat (limited to 'src/mm-iface-modem-simple.c')
0 files changed, 0 insertions, 0 deletions