NetBSD-Bugs archive

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

Re: lib/44888: [patch] libedit read.c: fix logic

The following reply was made to PR lib/44888; it has been noted by GNATS.

From: Lucius Windschuh <>
Subject: Re: lib/44888: [patch] libedit read.c: fix logic
Date: Thu, 21 Apr 2011 01:08:23 +0200

 2011/4/21 Christos Zoulas <>:
 > =A0On Apr 20, 10:45pm, 
 > ( wrote:
 > =A0-- Subject: lib/44888: [patch] libedit read.c: fix logic
 > =A0| It is strange to me that ma->level is not permanently incremented, o=
 nly in the edge case where strdup returns NULL (which happens in my case).
 > =A0It is permanently increament when strdup does not return NULL. In the =
 > =A0case where strdup returns NULL it is decremented. Perhaps something el=
 > =A0is going on?
 I'm sorry, you are totally right. I threw up =3D=3D NULL and !=3D NULL. :-(

Home | Main Index | Thread Index | Old Index