Two trivial patches for /bin/sh

Matthew Dillon dillon at
Mon Jun 5 08:58:05 PDT 2006

:I wanted to submit these before I attempt any serious surgery on /bin/sh.
:These two patches *mostly* bring /bin/sh up to WARNS?=3D3. They don't corre=
:the "comparison is always true due to limited range of data type" errors th=
:also appear on WARNS?=3D0.
:The eval.c patch fixes possible logjmp clobbering. The histedit.c patch fix=
:a warning of possibly returning an uninitialized value from str_to_event. (=
:initialize 'i' as well for good measure.)

    These patches didn't patch cleanly but since they are so trivial I
    was able to patch them in manually.

    I did something slightly different for histedit.c.  I only initiialized
    retval.  'i' doesn't need initialization at the top.


More information about the Submit mailing list