From: Pankaj Date: Tue, 20 Sep 2016 16:09:49 +0000 (+0200) Subject: proxy: Remove redundant NULL check X-Git-Tag: 0.23.3~10 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b034e8601036c41acfcbd39f12fcd4bfb75dfd13;p=p11-kit proxy: Remove redundant NULL check https://bugs.freedesktop.org/show_bug.cgi?id=93589 --- diff --git a/p11-kit/proxy.c b/p11-kit/proxy.c index 77e70c0..ad3caa5 100644 --- a/p11-kit/proxy.c +++ b/p11-kit/proxy.c @@ -645,7 +645,7 @@ proxy_C_CloseAllSessions (CK_X_FUNCTION_LIST *self, p11_dict_iterate (state->px->sessions, &iter); count = 0; while (p11_dict_next (&iter, NULL, (void**)&sess)) { - if (sess->wrap_slot == id && to_close) + if (sess->wrap_slot == id) to_close[count++] = sess->wrap_session; } }