Re: [PATCH 1/3] Use zalloc rather than malloc and manually setting members to 0

2014-12-05 Thread Marek Chalupa
Hi, On 26 November 2014 at 22:49, Bryce Harrington wrote: > On Wed, Nov 26, 2014 at 03:33:16PM +0100, Marek Chalupa wrote: > > On 21 November 2014 at 07:21, Bryce Harrington > > wrote: > > > > > Signed-off-by: Bryce Harrington > > > > > > - if (do_yflip) > > > - recorder->t

Re: [PATCH 1/3] Use zalloc rather than malloc and manually setting members to 0

2014-11-26 Thread Bryce Harrington
On Wed, Nov 26, 2014 at 03:33:16PM +0100, Marek Chalupa wrote: > On 21 November 2014 at 07:21, Bryce Harrington > wrote: > > > Signed-off-by: Bryce Harrington > > > > - if (do_yflip) > > - recorder->tmpbuf = NULL; > > - else > > + if (!do_yflip) > >

Re: [PATCH 1/3] Use zalloc rather than malloc and manually setting members to 0

2014-11-26 Thread Marek Chalupa
On 21 November 2014 at 07:21, Bryce Harrington wrote: > Signed-off-by: Bryce Harrington > --- > src/clipboard.c | 5 +++-- > src/screenshooter.c | 9 ++--- > 2 files changed, 5 insertions(+), 9 deletions(-) > > diff --git a/src/clipboard.c b/src/clipboard.c > index 5a3a02d..dbd8c9b 1006

[PATCH 1/3] Use zalloc rather than malloc and manually setting members to 0

2014-11-20 Thread Bryce Harrington
Signed-off-by: Bryce Harrington --- src/clipboard.c | 5 +++-- src/screenshooter.c | 9 ++--- 2 files changed, 5 insertions(+), 9 deletions(-) diff --git a/src/clipboard.c b/src/clipboard.c index 5a3a02d..dbd8c9b 100644 --- a/src/clipboard.c +++ b/src/clipboard.c @@ -214,9 +214,10 @@ cli