John Ferlan f6a4ccdc83 vsh: Fix some issues in auto completion code
1. Move the declaration of const vshCmdDef *help - it should be at the
   top of the "if" rather than in the middle.

2. Change a comparison from && to || - without doing so we could crash
   on commands like 'virsh list' which would allow completion of some
   non -- option based on whatever was found in the current working
   directory and then as soon as that was completed, the next <tab>
   would crash since "opt" would be returned as NULL, but the check
   was dereferencing "&& opt->type"

3. Before dereferencing opt->completer, be sure opt isn't NULL.
2016-10-10 15:27:45 -04:00
..
2016-08-01 12:02:51 +02:00
2016-09-08 09:54:12 +02:00
2016-08-24 17:43:29 +02:00
2016-09-14 13:18:07 +02:00
2016-09-26 08:06:30 -04:00
2016-04-25 15:40:44 +02:00
2016-04-25 15:40:44 +02:00
2016-04-25 15:40:44 +02:00
2016-04-25 15:40:44 +02:00