Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.2:PowerPC
ksh
ksh93-reg.dif
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File ksh93-reg.dif of Package ksh
--- src/cmd/ksh93/edit/edit.c +++ src/cmd/ksh93/edit/edit.c 2012-01-16 16:13:59.743144345 +0100 @@ -1670,7 +1670,7 @@ int ed_histgen(Edit_t *ep,const char *pa History_t *hp; off_t offset; int ac=0,l,m,n,index1,index2; - char *cp, **argv, **av, **ar; + char *cp, **argv=0, **av, **ar; if(!(hp=ep->sh->gd->hist_ptr)) return(0); if(*pattern=='#') @@ -1748,8 +1748,13 @@ int ed_histgen(Edit_t *ep,const char *pa mplast->next = mp; mplast->next = 0; } - ep->hlist = (Histmatch_t**)argv; - ep->hfirst = ep->hlist?ep->hlist[0]:0; + if (argv) + { + ep->hlist = (Histmatch_t**)argv; + ep->hfirst = ep->hlist?ep->hlist[0]:0; + } + else + ep->hfirst = 0; return(ep->hmax=ac); }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor