[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Nano-devel] Memory leak in browser
From: |
Mike Frysinger |
Subject: |
Re: [Nano-devel] Memory leak in browser |
Date: |
Mon, 22 Feb 2016 15:10:24 -0500 |
On 22 Feb 2016 23:42, Rishabh Dave wrote:
> Which one of the following manner is better, former or latter? I kept
> former as latter breaks the indentation.
>
> Manner #1 -
>
> + temp = striponedir(filelist[selected]);
> + prev_dir = mallocstrcpy(NULL, temp);
>
> Manner #2 -
>
> + prev_dir = mallocstrcpy(NULL, (temp =
> striponedir(filelist[selected]));
inline assignments should be brought out back and shot ;)
-mike
signature.asc
Description: Digital signature