From: handa Date: Fri, 18 May 2007 00:32:22 +0000 (+0000) Subject: (config_command): Set NAME before using it. X-Git-Tag: FLT-base~50 X-Git-Url: http://git.chise.org/gitweb/?a=commitdiff_plain;h=ef71335ceb286b3669919046ebccfbdf8cea9819;p=m17n%2Fm17n-lib.git (config_command): Set NAME before using it. --- diff --git a/src/input.c b/src/input.c index 3cc1086..8f6cfa9 100644 --- a/src/input.c +++ b/src/input.c @@ -1742,14 +1742,13 @@ config_command (MPlist *plist, MPlist *global_cmds, MPlist *custom_cmds, MPlist *config_cmds) { MPlist *global = NULL, *custom = NULL, *config = NULL; - MSymbol name; + MSymbol name = MPLIST_SYMBOL (plist); MSymbol status; MPlist *description, *keyseq; if (global_cmds && (global = mplist__assq (global_cmds, name))) global = MPLIST_NEXT (MPLIST_PLIST (global)); - name = MPLIST_SYMBOL (plist); plist = MPLIST_NEXT (plist); if (MPLIST_MTEXT_P (plist) || MPLIST_PLIST_P (plist)) {