Changeset 541 for trunk/src/sh_err_log.c


Ignore:
Timestamp:
Jan 16, 2019, 11:57:48 PM (6 years ago)
Author:
katerina
Message:

Fix for ticket #433 (coding standardisation).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_err_log.c

    r516 r541  
    743743      current->service_failure = 0;
    744744      current->log_start       = S_TRUE;
    745       memset(current->sigkey_old, (int)'\0', KEY_LEN+1);
    746       memset(current->sigkey_new, (int)'\0', KEY_LEN+1);
    747       memset(current->crypto,     (int)'\0', KEY_LEN+1);
     745      memset(current->sigkey_old, 0, KEY_LEN+1);
     746      memset(current->sigkey_new, 0, KEY_LEN+1);
     747      memset(current->crypto,     0, KEY_LEN+1);
    748748      current->next            = logfile_list;
    749749      logfile_list             = current;
     
    944944
    945945
    946       memset (crypto, (int) '\0', KEY_LEN);
     946      memset (crypto, 0, KEY_LEN);
    947947      sh.flag.log_start    = S_FALSE; 
    948948      current->log_start   = S_FALSE;
     
    10461046  /* --- Clean up and free record. ---
    10471047   */
    1048   memset (log_msg.msg,       (int)'\0', (size_t)(status + 2*KEY_LEN + 32));
    1049   memset (log_msg.signature, (int)'\0', KEY_LEN);
     1048  memset (log_msg.msg,       0, (size_t)(status + 2*KEY_LEN + 32));
     1049  memset (log_msg.signature, 0, KEY_LEN);
    10501050  (void) sh_unix_munlock (log_msg.msg, 
    10511051                          (size_t)(status + 2*KEY_LEN + 32));
Note: See TracChangeset for help on using the changeset viewer.