Fixes for Parfait errors - mostly unhandled NULL pointer dereference and data type mismatch

This commit is contained in:
Jiri Kukacka
2013-12-09 18:58:21 +01:00
committed by Felipe Zimmerle
parent 5f996d45f0
commit 62a6f228f8
3 changed files with 7 additions and 3 deletions

View File

@@ -1340,6 +1340,10 @@ msre_actionset *msre_actionset_create_default(msre_engine *engine) {
* Sets the default values for the hard-coded actionset configuration.
*/
void msre_actionset_set_defaults(msre_actionset *actionset) {
if (actionset == NULL) {
return;
}
/* Metadata */
if (actionset->id == NOT_SET_P) actionset->id = NULL;
if (actionset->rev == NOT_SET_P) actionset->rev = NULL;