FreeBSD Bugzilla – Attachment 210736 Details for
Bug 243307
ftp/lftp: Crashes on 11.3-RELEASE-p3 i386
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch to illustrate the problem (not a proper fix)
patch-src-ResMgr.cc (text/plain), 1.07 KB, created by
Ganael LAPLANCHE
on 2020-01-14 16:41:44 UTC
(
hide
)
Description:
Patch to illustrate the problem (not a proper fix)
Filename:
MIME Type:
Creator:
Ganael LAPLANCHE
Created:
2020-01-14 16:41:44 UTC
Size:
1.07 KB
patch
obsolete
>--- src/ResMgr.cc.orig 2019-08-23 23:08:17.000000000 +0200 >+++ src/ResMgr.cc 2020-01-14 17:32:33.475771000 +0100 >@@ -86,6 +86,9 @@ const char *ResType::FindVar(const char *name,const Re > const ResType *exact_name=0; > int sub=0; > >+ if(!types_by_name) >+ types_by_name=new xmap<ResType*>; >+ > *type=types_by_name->lookup(name); > if(*type) > goto found; // exact match >@@ -266,6 +269,10 @@ static int RefResourceCompare(const Ref<Resource> *a,c > char *ResType::Format(bool with_defaults,bool only_defaults) > { > RefArray<Resource> created; >+ >+ if(!types_by_name) >+ types_by_name=new xmap<ResType*>; >+ > if(with_defaults || only_defaults) > { > for(ResType *dscan=types_by_name->each_begin(); dscan; dscan=types_by_name->each_next()) >@@ -301,6 +308,9 @@ char *ResType::Format(bool with_defaults,bool only_def > char **ResType::Generator(void) > { > StringSet res; >+ >+ if(!types_by_name) >+ types_by_name=new xmap<ResType*>; > > for(ResType *dscan=types_by_name->each_begin(); dscan; dscan=types_by_name->each_next()) > if(!dscan->IsAlias())
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 243307
:
210679
| 210736