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-10-05 08:33:00 +02:00
2016-08-01 12:02:51 +02:00
2016-01-11 15:49:13 +01:00
2016-09-06 16:05:20 +02:00
2016-10-10 16:52:08 +08:00
2015-02-23 08:49:21 +01:00
2016-08-31 12:52:11 +02:00
2015-08-14 15:45:44 +02:00
2015-08-14 15:45:44 +02:00
2016-07-26 17:30:01 +02:00
2015-08-14 15:45:44 +02:00
2016-10-10 04:21:38 +02:00
2015-08-14 15:45:44 +02:00
2015-02-20 07:46:54 +01:00
2016-09-22 15:40:08 +02:00
2012-09-20 16:30:55 -06:00
2016-08-24 17:43:29 +02:00
2015-08-14 15:45:44 +02:00
2016-09-08 09:54:12 +02:00
2015-08-14 15:45:44 +02:00
2016-09-20 15:17:46 +02:00
2012-09-20 16:30:55 -06:00
2016-08-24 17:43:29 +02:00
2015-08-14 15:45:44 +02:00
2016-09-08 09:54:12 +02:00
2015-08-14 15:45:44 +02:00
2016-08-24 17:43:29 +02:00
2012-09-20 16:30:55 -06:00
2016-08-24 17:43:29 +02:00
2012-09-20 16:30:55 -06:00
2016-09-07 11:11:30 -04:00
2015-08-14 15:45:44 +02:00
2016-09-14 13:18:07 +02:00
2016-03-01 06:50:16 -05:00
2016-10-10 04:21:38 +02:00
2016-09-26 08:06:30 -04:00
2015-12-21 10:07:59 +01:00
2016-09-20 15:17:46 +02:00
2016-05-04 16:30:30 +02:00
2016-05-11 09:06:32 +02:00
2016-03-30 09:41:54 +02:00
2016-05-11 09:06:32 +02:00
2016-06-14 08:02:45 +03:00
2016-05-11 09:06:32 +02:00
2016-04-25 15:40:43 +02:00
2016-04-25 15:40:44 +02:00
2016-07-19 07:51:10 -04:00
2016-06-10 11:03:02 +01:00
2016-06-10 11:03:02 +01:00
2016-04-25 15:40:43 +02:00
2016-04-25 15:40:44 +02:00
2016-04-25 15:40:43 +02:00
2016-04-25 15:40:44 +02:00
2016-04-25 15:40:43 +02:00
2016-04-25 15:40:44 +02:00
2016-10-10 15:27:45 -04:00
2016-09-20 15:17:46 +02:00