1
0
Fork 0
mirror of git://git.code.sf.net/p/cdesktopenv/code synced 2025-02-13 03:32:24 +00:00

libcsa: Resolve uninitialized warnings

This commit is contained in:
Peter Howkins 2021-12-21 01:12:45 +00:00 committed by Jon Trulson
parent fa4fe1fb47
commit 35c9fd24a3
3 changed files with 6 additions and 6 deletions

View file

@ -102,7 +102,7 @@ _DtCmHashCriteria(
time_t tstart1, tstart2, tend1, tend2; time_t tstart1, tstart2, tend1, tend2;
time_t tick; time_t tick;
char *name; char *name;
cms_attribute_value *val, *hval; cms_attribute_value *val, *hval = NULL;
boolean_t keep; boolean_t keep;
*hnum = 0; *hnum = 0;
@ -247,7 +247,7 @@ _DtCmHashCriteria(
(*hattrs)[j].name.name = name; (*hattrs)[j].name.name = name;
(*hattrs)[j].name.num = index; (*hattrs)[j].name.num = index;
if (val) { if (val && hval) {
(*hattrs)[j].value = &hval[j]; (*hattrs)[j].value = &hval[j];
(*hattrs)[j].value->type = val->type; (*hattrs)[j].value->type = val->type;
if (csaattrs && if (csaattrs &&

View file

@ -1206,7 +1206,7 @@ csa2cmsattrs(
{ {
CSA_return_code stat = CSA_SUCCESS; CSA_return_code stat = CSA_SUCCESS;
cms_attribute *cmsattrs; cms_attribute *cmsattrs;
CSA_enum *ops_r; CSA_enum *ops_r = NULL;
CSA_reminder *rptr1, *rptr2; CSA_reminder *rptr1, *rptr2;
int i,j; int i,j;

View file

@ -1055,7 +1055,7 @@ _DtCm_table_delete(
extern CSA_return_code extern CSA_return_code
_DtCm_table_size(Calendar *cal, int *size) _DtCm_table_size(Calendar *cal, int *size)
{ {
int *res; int *res = NULL;
CSA_return_code stat = CSA_SUCCESS; CSA_return_code stat = CSA_SUCCESS;
_DtCm_Connection *conn; _DtCm_Connection *conn;
@ -1275,7 +1275,7 @@ _DtCm_table_unregister_target(
nullreturned = B_TRUE; nullreturned = B_TRUE;
break; break;
default: default:
stat = CSA_E_FAILURE; return CSA_E_FAILURE;
} }
if (nullreturned) { if (nullreturned) {
@ -1360,7 +1360,7 @@ _DtCm_table_register_target(
nullreturned = B_TRUE; nullreturned = B_TRUE;
break; break;
default: default:
stat = CSA_E_FAILURE; return CSA_E_FAILURE;
} }
if (nullreturned) { if (nullreturned) {