Task #102279 - added.err

back to task #102279
download
Error: CPPCHECK_WARNING (CWE-563):
avahi-0.9.rc3/avahi-daemon/ini-file-parser.c:65: style[unreadVariable]: Variable 'filename_len' is assigned a value that is never used.
#   63|   
#   64|   char** avahi_ini_list_confd_files_sorted(const char* confd_path, int* confd_file_count) {
#   65|->     int filename_len = 0;
#   66|       int suffix_len = 0;
#   67|       const char *suffix = ".conf";

Error: CPPCHECK_WARNING (CWE-398):
avahi-0.9.rc3/avahi-daemon/ini-file-parser.c:65: style[variableScope]: The scope of the variable 'filename_len' can be reduced.
#   63|   
#   64|   char** avahi_ini_list_confd_files_sorted(const char* confd_path, int* confd_file_count) {
#   65|->     int filename_len = 0;
#   66|       int suffix_len = 0;
#   67|       const char *suffix = ".conf";

Error: CPPCHECK_WARNING (CWE-398):
avahi-0.9.rc3/avahi-daemon/ini-file-parser.c:624: style[variableScope]: The scope of the variable 't' can be reduced.
#  622|                       c->server_config.add_service_cookie = is_yes(p->value);
#  623|                   else if (strcasecmp(p->key, "publish-dns-servers") == 0) {
#  624|->                     char **e, **t;
#  625|   
#  626|                       avahi_log_debug("publish-dns-servers: processing line: '%s'", p->value);