Re: [pacman-dev] [PATCH] pacman: fix segfault when Usage is specified without a value

2019-03-06 Thread Allan McRae
On 7/3/19 10:53 am, Allan McRae wrote: > On 7/3/19 8:52 am, morganamilo wrote: >> And extract all the common code to a macro. >> >> Signed-off-by: morganamilo >> --- > > How can I replicate? > > I set "Usage =" in my pacman.conf and no segfault from either pacman or > pacman-conf > Got it...

Re: [pacman-dev] [PATCH] pacman: fix segfault when Usage is specified without a value

2019-03-06 Thread Allan McRae
On 7/3/19 8:52 am, morganamilo wrote: > And extract all the common code to a macro. > > Signed-off-by: morganamilo > --- How can I replicate? I set "Usage =" in my pacman.conf and no segfault from either pacman or pacman-conf Allan

[pacman-dev] [PATCH] pacman: fix segfault when Usage is specified without a value

2019-03-06 Thread morganamilo
And extract all the common code to a macro. Signed-off-by: morganamilo --- src/pacman/conf.c | 38 -- 1 file changed, 20 insertions(+), 18 deletions(-) diff --git a/src/pacman/conf.c b/src/pacman/conf.c index 29f69052..cca3657e 100644 --- a/src/pacman/conf.c