I don't think this would be the correct solution. The stringshare's are intended to work as a drop in replacement for strdup/free, which does segv if you pass in NULL. Putting in a check for NULL before the call to stringshare would be more appropriate.

On 12/26/05, Chady Kassouf <[EMAIL PROTECTED]> wrote:
Hi,

I encountered a segfault in e17 while playing around with desktop names:

$ enlightenment_remote -desktop-name-add 0 0 0 0 ""

will crash e17

This is a patch for evas_stringshare_(add|del) to quickly return on nulls.


--
Chady 'Leviathan' Kassouf
http://chady.net/


Reply via email to