diff --git a/tools/shell/src/shellAuto.c b/tools/shell/src/shellAuto.c index fdf6d1b117..6e50a97c02 100644 --- a/tools/shell/src/shellAuto.c +++ b/tools/shell/src/shellAuto.c @@ -938,13 +938,13 @@ char* tireSearchWord(int type, char* pre) { return matchNextPrefix(tire, pre); } - // can obtain var names from local - STire* tire = getAutoPtr(type); - if (tire == NULL) { + if(updateTireValue(type, true)) { return NULL; } - if(updateTireValue(type, true)) { + // can obtain var names from local + STire* tire = getAutoPtr(type); + if (tire == NULL) { return NULL; }