Changeset 541 for trunk/src/sh_unix.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_unix.c

    r539 r541  
    8383#endif
    8484#ifndef FD_ZERO
    85 #define FD_ZERO(p)      memset((char *)(p), '\0', sizeof(*(p)))
     85#define FD_ZERO(p)      memset((char *)(p), 0, sizeof(*(p)))
    8686#endif
    8787
     
    514514      ++immediate_exit_normal;
    515515      if ((skey != NULL) && (immediate_exit_normal == 2))
    516         memset (skey, '\0', sizeof(sh_key_t));
     516        memset (skey, 0, sizeof(sh_key_t));
    517517      if (immediate_exit_normal == 2)
    518518        {
     
    579579  ++immediate_exit_fast;
    580580  if (skey != NULL && immediate_exit_fast < 2)
    581     memset (skey, '\0', sizeof(sh_key_t));
     581    memset (skey, 0, sizeof(sh_key_t));
    582582  if (immediate_exit_fast < 2)
    583583    safe_logger (mysignal, 0, NULL);
     
    591591      ++immediate_exit_fast;
    592592      if (skey != NULL)
    593         memset (skey, '\0', sizeof(sh_key_t));
     593        memset (skey, 0, sizeof(sh_key_t));
    594594      close_ipc ();
    595595      safe_logger (mysignal, 0, NULL);
     
    631631
    632632  if (skey != NULL)
    633     memset (skey, '\0', sizeof(sh_key_t));
     633    memset (skey, 0, sizeof(sh_key_t));
    634634  close_ipc ();
    635635
Note: See TracChangeset for help on using the changeset viewer.