Changeset 89db90e for lib/oauth.c


Ignore:
Timestamp:
2015-03-12T09:10:16Z (9 years ago)
Author:
dequis <dx@…>
Children:
fc650a8
Parents:
0e4c3dd (diff), 3bb333c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Merge branch 'develop' into feat/hip-cat

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/oauth.c

    r0e4c3dd r89db90e  
    9696{
    9797        int key_len = strlen(key);
    98         GSList *l, *n;
    99 
    100         if (params == NULL) {
     98        GSList *l;
     99
     100        if (!params) {
    101101                return;
    102102        }
    103103
    104         for (l = *params; l; l = n) {
    105                 n = l->next;
    106 
    107                 if (strncmp((char *) l->data, key, key_len) == 0 &&
    108                     ((char *) l->data)[key_len] == '=') {
    109                         g_free(l->data);
    110                         *params = g_slist_remove(*params, l->data);
     104        for (l = *params; l; l = l->next) {
     105                char *data = l->data;
     106
     107                if (strncmp(data, key, key_len) == 0 && data[key_len] == '=') {
     108                        *params = g_slist_remove(*params, data);
     109                        g_free(data);
    111110                }
    112111        }
Note: See TracChangeset for help on using the changeset viewer.