From: Jeffrey Altman Date: Thu, 27 Sep 2007 03:44:29 +0000 (+0000) Subject: NIM: BUG: LIB: optimize khui_find_action() X-Git-Tag: krb5-1.7-alpha1~848 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=be2c77c88a86c87b34add694e85b660fa7397f35;p=krb5.git NIM: BUG: LIB: optimize khui_find_action() 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: new component: windows git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@19984 dc483132-0cff-0310-8789-dd5450dbe970 --- 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 &&