[PATCH] Fix crash on empty arguments
Lubomir I. Ivanov
neolit123 at gmail.com
Mon Oct 12 06:50:34 PDT 2015
On 12 October 2015 at 16:47, <sergey.starosek at gmail.com> wrote:
> From: Sergey Starosek <sergey.starosek at gmail.com>
>
> Signed-off-by: Sergey Starosek <sergey.starosek at gmail.com>
> ---
> main.cpp | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/main.cpp b/main.cpp
> index 71a998d..f27a174 100644
> --- a/main.cpp
> +++ b/main.cpp
> @@ -39,6 +39,8 @@ int main(int argc, char **argv)
>
> for (i = 1; i < arguments.length(); i++) {
> QString a = arguments.at(i);
> + if (a.isEmpty())
> + continue;
> if (a.at(0) == '-') {
> parse_argument(a.toLocal8Bit().data());
> continue;
ACK
thanks!
lubomir
--
More information about the subsurface
mailing list