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 <lwindschuh%googlemail.com@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc: 
Subject: Re: lib/44888: [patch] libedit read.c: fix logic
Date: Thu, 21 Apr 2011 01:08:23 +0200

 2011/4/21 Christos Zoulas <christos%zoulas.com@localhost>:
 > =A0On Apr 20, 10:45pm, lwindschuh%gmail.com@localhost 
 > (lwindschuh%gmail.com@localhost) 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 =
 error
 > =A0case where strdup returns NULL it is decremented. Perhaps something el=
 se
 > =A0is going on?
 
 I'm sorry, you are totally right. I threw up =3D=3D NULL and !=3D NULL. :-(
 
 Lucius
 


Home | Main Index | Thread Index | Old Index