diff options
Diffstat (limited to 'lib/oauth.c')
-rw-r--r-- | lib/oauth.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/oauth.c b/lib/oauth.c index 005d76c4..71a7f862 100644 --- a/lib/oauth.c +++ b/lib/oauth.c @@ -95,13 +95,14 @@ void oauth_params_add(GSList **params, const char *key, const char *value) void oauth_params_del(GSList **params, const char *key) { int key_len = strlen(key); - GSList *l; + GSList *l, *n; if (!params) { return; } - for (l = *params; l; l = l->next) { + for (l = *params; l; l = n) { + n = l->next; char *data = l->data; if (strncmp(data, key, key_len) == 0 && data[key_len] == '=') { |