mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-25 08:20:08 +01:00
all: avoid coverity warnings about "Missing Initialization"
31. NetworkManager-1.9.2/src/settings/plugins/ifcfg-rh/nms-ifcfg-rh-reader.c:974: uninit_use_in_call: Using uninitialized value "contents_rest" when calling "__strtok_r_1c". 33. NetworkManager-1.9.2/src/nm-core-utils.c:1957: uninit_use: Using uninitialized value "s". 148. NetworkManager-1.9.2/src/nm-core-utils.c:1924: uninit_use_in_call: Using uninitialized value "s" when calling "nm_strstrip_avoid_copy".
This commit is contained in:
parent
f3146de41b
commit
287d1aee77
2 changed files with 2 additions and 2 deletions
|
|
@ -1915,7 +1915,7 @@ nm_utils_resolve_conf_parse (int addr_family,
|
|||
|
||||
for (l = 0; lines[l]; l++) {
|
||||
const char *const line = lines[l];
|
||||
const char *s;
|
||||
const char *s = NULL;
|
||||
|
||||
if (RC_MATCH (line, "nameserver", s)) {
|
||||
gs_free char *s_cpy = NULL;
|
||||
|
|
|
|||
|
|
@ -1016,7 +1016,7 @@ read_route_file (int addr_family,
|
|||
GError **error)
|
||||
{
|
||||
gs_free char *contents = NULL;
|
||||
char *contents_rest;
|
||||
char *contents_rest = NULL;
|
||||
const char *line;
|
||||
gsize len = 0;
|
||||
gsize line_num;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue