mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-24 16:00:07 +01:00
libnm-core: fix compiler warning in nm_vpn_plugin_info_get_auth_dialog()
libnm-core/nm-vpn-plugin-info.c: In function ‘nm_vpn_plugin_info_get_auth_dialog’:
shared/gsystem-local-alloc.h:53:46: error: ‘prog_basename’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
Fixes: a3f94f451b
This commit is contained in:
parent
3d505b3f87
commit
7434e6a77b
1 changed files with 2 additions and 3 deletions
|
|
@ -678,10 +678,9 @@ nm_vpn_plugin_info_get_auth_dialog (NMVpnPluginInfo *self)
|
|||
else if (g_path_is_absolute (s))
|
||||
priv->auth_dialog = g_strdup (s);
|
||||
else {
|
||||
gs_free char *prog_basename;
|
||||
|
||||
/* for relative paths, we take the basename and assume it's in LIBEXECDIR. */
|
||||
prog_basename = g_path_get_basename (s);
|
||||
gs_free char *prog_basename = g_path_get_basename (s);
|
||||
|
||||
priv->auth_dialog = g_build_filename (LIBEXECDIR, prog_basename, NULL);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue