From 86c433892f937513f2575d07f57dec440324aee1 Mon Sep 17 00:00:00 2001 From: Tom Yu Date: Mon, 1 Oct 2007 23:14:58 +0000 Subject: [PATCH] pull up r19984 from trunk r19984@cathode-dark-space: jaltman | 2007-09-26 23:44:29 -0400 ticket: new subject: NIM: BUG: LIB: optimize khui_find_action() component: windows In Network Identity Manager, when locating the action object corresponding to an action identifier using khui_find_action(), don't search through the list of standard actions if we already know that the object we are searching for is a custom action. ticket: 5779 version_fixed: 1.6.3 git-svn-id: svn://anonsvn.mit.edu/krb5/branches/krb5-1-6@20054 dc483132-0cff-0310-8789-dd5450dbe970 --- src/windows/identity/uilib/action.c | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/windows/identity/uilib/action.c b/src/windows/identity/uilib/action.c index a47683171..04fb52a84 100644 --- a/src/windows/identity/uilib/action.c +++ b/src/windows/identity/uilib/action.c @@ -796,16 +796,18 @@ khui_find_menu(khm_int32 id) { KHMEXP khui_action * KHMAPI khui_find_action(khm_int32 id) { - khui_action * act; + khui_action * act = NULL; int i; - act = khui_actions; - for(i=0;i= KHUI_USERACTION_BASE && -- 2.26.2