mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-27 16:20:09 +01:00
ppp: fix warning when PPP support is disabled
This commit is contained in:
parent
2140dad5e0
commit
bf34e7099d
1 changed files with 4 additions and 1 deletions
|
|
@ -166,7 +166,8 @@ dispose (GObject *object)
|
|||
|
||||
nm_ppp_manager_stop (NM_PPP_MANAGER (object));
|
||||
|
||||
g_object_unref (priv->act_req);
|
||||
if (priv->act_req)
|
||||
g_object_unref (priv->act_req);
|
||||
g_object_unref (priv->dbus_manager);
|
||||
|
||||
G_OBJECT_CLASS (nm_ppp_manager_parent_class)->dispose (object);
|
||||
|
|
@ -785,6 +786,8 @@ create_pppd_cmd_line (NMPPPManager *self,
|
|||
NMCmdLine *cmd;
|
||||
const char *ppp_debug;
|
||||
|
||||
g_return_val_if_fail (setting != NULL, NULL);
|
||||
|
||||
ppp_binary = nm_find_pppd ();
|
||||
if (!ppp_binary) {
|
||||
g_set_error (err, NM_PPP_MANAGER_ERROR, NM_PPP_MANAGER_ERROR,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue