|
From: | Pádraig Brady |
Subject: | Re: [PATCH] src/sort.c: assert on temp.text before calling memcpy() |
Date: | Wed, 06 Jan 2010 10:13:23 +0000 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.5) Gecko/20091204 Thunderbird/3.0 |
That looks wrong. Should memcpy() be marked as nonnull as the length can be 0? In any case we don't want to be asserting in such cases, rather just doing: if (temp.text) memcpy (...)
[Prev in Thread] | Current Thread | [Next in Thread] |