[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nano-devel] [PATCH] browser: replace newpath by path and present_pa

From: Benno Schulenberg
Subject: Re: [Nano-devel] [PATCH] browser: replace newpath by path and present_path
Date: Wed, 13 Jul 2016 09:35:34 +0200

On Tue, Jul 12, 2016, at 22:16, Benno Schulenberg wrote:
> If you run 'src/nano --oper=.' and then type ^R ^T M-G /home <Enter>
> then move the cursor around a bit (just for fun), and then type ^L,
> it says: "Cannot open directory: No such file or directory".  What?
> Message doesn't make sense.

Ah.  Sorry.  That was with my version of the patch, that doesn't
have this at line 333:

> +           path = mallocstrcpy(path, present_path);

That is what prevents the mistaken error message in your case.
It will work, but it is "cleaner"/safer to not let path go null.


-- - Access your email from home and the web

reply via email to

[Prev in Thread] Current Thread [Next in Thread]