[PATCH] fix segfault

1 view
Skip to first unread message

Richard Kolkovich

unread,
Sep 17, 2010, 12:47:57 AM9/17/10
to keynav...@googlegroups.com
Resurrecting my keynav use, I found a segfault processing defaults(). strtok_r returns NULL when
the keysequence has no commands (i.e. clear). I *am* on FreeBSD, but I'm not sure how this hasn't
affected anyone else, as the Linux strtok_r(2) states the same behavior...

Cheers,
Richard

--

Richard Kolkovich
http://www.sigil.org
PGP Key: 0x9E54EF59 (http://pgp.mit.edu)

keynav-segfault.patch

Jordan Sissel

unread,
Sep 18, 2010, 5:43:36 PM9/18/10
to keynav...@googlegroups.com
On Thu, Sep 16, 2010 at 9:47 PM, Richard Kolkovich <ric...@sigil.org> wrote:
> Resurrecting my keynav use, I found a segfault processing defaults().  strtok_r returns NULL when
> the keysequence has no commands (i.e. clear).  I *am* on FreeBSD, but I'm not sure how this hasn't
> affected anyone else, as the Linux strtok_r(2) states the same behavior...
>
> Cheers,
> Richard
>

Thanks for the patch; looks good :)

I'll commit it after I test it.

-Jordan

Reply all
Reply to author
Forward
0 new messages