From b034e8601036c41acfcbd39f12fcd4bfb75dfd13 Mon Sep 17 00:00:00 2001 From: Pankaj Date: Tue, 20 Sep 2016 18:09:49 +0200 Subject: [PATCH] proxy: Remove redundant NULL check https://bugs.freedesktop.org/show_bug.cgi?id=93589 --- p11-kit/proxy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } -- 2.40.0