- possitive error codes may arrive
- do not return uninitialized value
*/
int edg_wll_log_connect(edg_wll_Context ctx, int *conn)
{
- int ret,answer,index;
+ int ret, answer=0, index;
char *my_subject_name = NULL;
edg_wll_GssStatus gss_stat;
memset(&conn,0,sizeof(conn));
/* connect to local-logger */
- if ((ret = edg_wll_log_connect(ctx,&conn)) < 0) {
+ if ((ret = edg_wll_log_connect(ctx,&conn))) {
edg_wll_UpdateError(ctx,EDG_WLL_IL_PROTO,"edg_wll_DoLogEvent(): edg_wll_log_connect error");
goto edg_wll_DoLogEvent_end;
}