trivial: more wrong compiler warnings

connection_parser.c: In function 'make_ip4_setting':
  connection_parser.c:660:33: error: 'method' may be used uninitialized in this function [-Werror=maybe-uninitialized]
    if (!is_static_block && strstr (method, "dhcp")) {

  connections.c: In function ‘load_cmd_line_edit_lib’:
  connections.c:5744:17: error: ‘module’ may be used uninitialized in this function [-Werror=maybe-uninitialized]
    g_module_close (module);

Signed-off-by: Thomas Haller <thaller@redhat.com>
This commit is contained in:
Thomas Haller 2014-02-27 18:31:05 +01:00
parent 0550a14fbe
commit 7d73ee75df
2 changed files with 2 additions and 2 deletions

View file

@ -5672,7 +5672,7 @@ nmcli_editor_tab_completion (char *text, int start, int end)
static GModule *
load_cmd_line_edit_lib (void)
{
GModule *module;
GModule *module = NULL;
char *lib_path;
int i;
static const char * const edit_lib_table[] = {

View file

@ -571,7 +571,7 @@ make_ip4_setting (NMConnection *connection,
NMSettingIP4Config *ip4_setting =
NM_SETTING_IP4_CONFIG (nm_setting_ip4_config_new ());
const char *value, *method;
const char *value, *method = NULL;
gboolean is_static_block = is_static_ip4 (conn_name);
ip_block *iblock = NULL;