Changeset 90a45b8


Ignore:
Timestamp:
2016-12-26T22:38:32Z (2 years ago)
Author:
dequis <dx@…>
Branches:
master
Children:
d57484d
Parents:
26eed8a
git-author:
dequis <dx@…> (26-12-16 02:17:28)
git-committer:
dequis <dx@…> (26-12-16 22:38:32)
Message:

Fix some clang static analyzer warnings

Nothing interesting.

Files:
4 edited

Legend:

Unmodified
Added
Removed
  • lib/ftutil.c

    r26eed8a r90a45b8  
    4242        struct addrinfo hints, *rp;
    4343        socklen_t ssize = sizeof(struct sockaddr_storage);
    44         struct sockaddr_storage saddrs, *saddr = &saddrs;
     44        struct sockaddr_storage saddrs = {0}, *saddr = &saddrs;
    4545        static char errmsg[1024];
    4646        char *ftlisten = global.conf->ft_listen;
  • protocols/jabber/s5bytestream.c

    r26eed8a r90a45b8  
    500500        case BS_PHASE_REPLY:
    501501        {
    502                 struct socks5_message socks5_reply;
     502                struct socks5_message socks5_reply = {0};
    503503                int ret;
    504504
     
    10461046                        unsigned char nmethods;
    10471047                        unsigned char method;
    1048                 } socks5_hello;
     1048                } socks5_hello = {0};
    10491049
    10501050                if (!(ret = jabber_bs_peek(bt, &socks5_hello, sizeof(socks5_hello)))) {
     
    10911091        case BS_PHASE_REQUEST:
    10921092        {
    1093                 struct socks5_message socks5_connect;
     1093                struct socks5_message socks5_connect = {0};
    10941094                int msgsize = sizeof(struct socks5_message);
    10951095                int ret;
  • set.c

    r26eed8a r90a45b8  
    165165        /* If there's a default setting and it's equal to what we're trying to
    166166           set, stick with s->value = NULL. Otherwise, remember the setting. */
    167         if (!s->def || (strcmp(nv, s->def) != 0)) {
     167        if (!s->def || (g_strcmp0(nv, s->def) != 0)) {
    168168                s->value = g_strdup(nv);
    169169        }
  • storage.c

    r26eed8a r90a45b8  
    7474
    7575        storage = storage_init_single(primary);
    76         if (storage == NULL && storage->save == NULL) {
     76        if (storage == NULL || storage->save == NULL) {
    7777                return NULL;
    7878        }
Note: See TracChangeset for help on using the changeset viewer.