Changeset 539 for trunk/src/sh_static.c


Ignore:
Timestamp:
Jan 7, 2019, 8:03:37 PM (6 years ago)
Author:
katerina
Message:

Fixes for tickets #431 (OpenBSD compatibility) and #432 (compiler warnings).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_static.c

    r533 r539  
    14741474                *fp = fopen("/etc/config/hosts", "r");
    14751475        }
     1476        /* cppcheck-suppress resourceLeak */
    14761477        return;
    14771478}
     
    15491550
    15501551        *h_errnop=HOST_NOT_FOUND;
     1552        if (fp == NULL) {
     1553                return ret;
     1554        }
    15511555        while (fgets(buf, buflen, fp)) {
    15521556                if ((cp = strchr(buf, '#')))
Note: See TracChangeset for help on using the changeset viewer.