- Modified mesure documentation

This commit is contained in:
koennecke
2005-03-03 13:54:58 +00:00
parent 835177dc0a
commit a47daea310
3 changed files with 8 additions and 3 deletions

View File

@ -1146,6 +1146,7 @@
/*-------------------------------------------------------- /*--------------------------------------------------------
*/ */
asyn_info->skt = 0; asyn_info->skt = 0;
asyn_info->msg_id = 0;
/*-------------------------------------------------------- /*--------------------------------------------------------
** Initialise the error info stack and pre-set the ** Initialise the error info stack and pre-set the
** routine name (in case of error). ** routine name (in case of error).
@ -1248,6 +1249,7 @@
/*-------------------------------------------------------- /*--------------------------------------------------------
*/ */
asyn_info->skt = 0; asyn_info->skt = 0;
asyn_info->msg_id = 0;
/*-------------------------------------------------------- /*--------------------------------------------------------
** Initialise the error info stack and pre-set the ** Initialise the error info stack and pre-set the
** routine name (in case of error). ** routine name (in case of error).
@ -1476,7 +1478,7 @@
** Terminate list with *txt = NULL. ** Terminate list with *txt = NULL.
*/ */
int i, status, c_len, size, max_size, ncmnds; int i, status, c_len, size, max_size, ncmnds;
int bytes_to_come, bytes_left; int bytes_to_come = 1, bytes_left;
char *nxt_byte_ptr; char *nxt_byte_ptr;
char err_text[80]; char err_text[80];
char text[20]; char text[20];
@ -1496,8 +1498,8 @@
** also be marked to have been forcefully closed. ** also be marked to have been forcefully closed.
*/ */
if (asyn_info->skt <= 0) { if (asyn_info->skt <= 0) {
memset (rcve_buff->msg_size, memset (rcve_buff,
'0', sizeof (rcve_buff->msg_size)); '0', sizeof (*rcve_buff));
if ((AsynSrv_errcode == 0) && (asyn_info->skt < 0)) { if ((AsynSrv_errcode == 0) && (asyn_info->skt < 0)) {
AsynSrv_errcode = ASYNSRV__FORCED_CLOSED; AsynSrv_errcode = ASYNSRV__FORCED_CLOSED;
} }
@ -1600,6 +1602,7 @@
} }
size = sizeof (rcve_buff->msg_size); size = sizeof (rcve_buff->msg_size);
memset(rcve_buff->msg_size,0,size);
status = recv (asyn_info->skt, rcve_buff->msg_size, size, 0); status = recv (asyn_info->skt, rcve_buff->msg_size, size, 0);
if (status != size) { if (status != size) {
GetErrno (&AsynSrv_errno, &AsynSrv_vaxc_errno); GetErrno (&AsynSrv_errno, &AsynSrv_vaxc_errno);

View File

@ -1986,6 +1986,7 @@
EL734_errcode = EL734__BAD_MALLOC; /* malloc failed!! */ EL734_errcode = EL734__BAD_MALLOC; /* malloc failed!! */
return False; return False;
} }
memset(my_handle,0,sizeof(*my_handle));
/*-------------------------------------------------------- /*--------------------------------------------------------
** Set up the connection ** Set up the connection
*/ */

View File

@ -1210,6 +1210,7 @@
EL737_errcode = EL737__BAD_MALLOC; /* malloc failed!! */ EL737_errcode = EL737__BAD_MALLOC; /* malloc failed!! */
return False; return False;
} }
memset(my_handle,0,sizeof(*my_handle));
/*-------------------------------------------------------- /*--------------------------------------------------------
** Set up the connection ** Set up the connection
*/ */