nano-devel
[Top][All Lists]
Advanced

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

Re: [Nano-devel] [PATCH] Fix segfault when creating a new buffer


From: David Ramsey
Subject: Re: [Nano-devel] [PATCH] Fix segfault when creating a new buffer
Date: Fri, 27 Oct 2017 14:20:43 -0500

Marco Diego Aurélio Mesquita:
> Please review or commit it.

The check for text's being an empty string could be simpler.  Instead of:

+    if (!strlen(text))
+       return;

you should do this, as it doesn't require an extra function call:

+    if (text[0] == '\0')
+       return;



reply via email to

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