Properly terminate property_info lists

BListView's property_info list lacked termination, resulting in
garbage output at the and of 'hey getsuites'.

Use { 0 } everywhere for sake of consistency.

Thanks to waddlesplash for spotting the bug an providing the easy fix.
This commit is contained in:
Humdinger 2017-11-05 18:38:59 +01:00
parent f0665db479
commit 346d149694
10 changed files with 16 additions and 10 deletions

View File

@ -44,7 +44,8 @@ static property_info sPropertyList[] = {
NULL, 0,
{ B_INT32_TYPE }
},
{}
{0}
};

View File

@ -78,6 +78,8 @@ static property_info sProperties[] = {
"Select or deselect all items in the selection. Boolean field \"data\" "
"chooses selection or deselection.", 0, { B_BOOL_TYPE }
},
{ 0 }
};

View File

@ -195,7 +195,7 @@ static property_info sPropList[] = {
"current specifier off the stack."
},
{}
{ 0 }
};

View File

@ -115,7 +115,7 @@ static property_info sShelfPropertyList[] = {
"... of Replicant {index | name | id} of ...", 0,
},
{ 0, { 0 }, { 0 }, 0, 0 }
{ 0 }
};
static property_info sReplicantPropertyList[] = {
@ -154,7 +154,7 @@ static property_info sReplicantPropertyList[] = {
NULL, 0,
},
{ 0, { 0 }, { 0 }, 0, 0 }
{ 0 }
};

View File

@ -43,7 +43,8 @@ static property_info sPropertyList[] = {
NULL, 0,
{ B_INT32_TYPE }
},
{}
{ 0 }
};

View File

@ -42,7 +42,7 @@ static property_info sPropertyList[] = {
{ B_INT32_TYPE }
},
{}
{ 0 }
};

View File

@ -61,7 +61,8 @@ static property_info sPropertyList[] = {
NULL, 0,
{ B_STRING_TYPE }
},
{}
{ 0 }
};

View File

@ -251,6 +251,7 @@ static property_info sPropertyList[] = {
"BTextView.", 0,
{ B_RAW_TYPE, 0 },
},
{ 0 }
};

View File

@ -99,7 +99,7 @@ static property_info sViewPropInfo[] = {
"Directs the scripting message to the specified view.", 0
},
{ 0, { 0 }, { 0 }, 0, 0 }
{ 0 }
};

View File

@ -183,7 +183,7 @@ static property_info sWindowPropInfo[] = {
{ B_DIRECT_SPECIFIER }, NULL, 0, { B_RECT_TYPE }
},
{}
{ 0 }
};
static value_info sWindowValueInfo[] = {
@ -207,7 +207,7 @@ static value_info sWindowValueInfo[] = {
"Resize by the offsets in the BPoint data"
},
{}
{ 0 }
};