[Top][All Lists]

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

[Confuse-devel] bug in strdup

From: Victor Liu
Subject: [Confuse-devel] bug in strdup
Date: Wed, 02 Jun 2010 21:16:51 -0700
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv: Gecko/20100317 Thunderbird/3.0.4

In the strdup implementation provided when HAVE_STRDUP is not defined, I believe there is a problem when an empty string is passed in. The check for *s == 0 makes it not duplicate the string.


reply via email to

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