diff options
author | Caolán McNamara <caolanm@redhat.com> | 2016-07-09 15:26:58 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2016-07-09 15:40:34 +0100 |
commit | 75ae1437397af2d4c7d16d0d11952c87105c582e (patch) | |
tree | 1054475456a8406b4b88f4102f776a9b4b6e6d7a /desktop | |
parent | 88a3cd7a39fc3dbbe8627c4bb1fc1195136df432 (diff) |
Resolves: tdf#71064 failed to open display with -h but not --help
when there is no DISPLAY set
Change-Id: Ic4f10d6f4781d01a05e51862b41311a2c1a3dc66
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/unx/source/args.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/desktop/unx/source/args.c b/desktop/unx/source/args.c index 34d3064abd16..19301f5948f1 100644 --- a/desktop/unx/source/args.c +++ b/desktop/unx/source/args.c @@ -101,7 +101,7 @@ Args *args_parse (void) if (arg[0] != '-') continue; - while (length > 2 && arg[0] == '-') { + while (length > 1 && arg[0] == '-') { arg++; length--; } |