Changeset 541 for trunk/src/sh_unix.c
- Timestamp:
- Jan 16, 2019, 11:57:48 PM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_unix.c
r539 r541 83 83 #endif 84 84 #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))) 86 86 #endif 87 87 … … 514 514 ++immediate_exit_normal; 515 515 if ((skey != NULL) && (immediate_exit_normal == 2)) 516 memset (skey, '\0', sizeof(sh_key_t));516 memset (skey, 0, sizeof(sh_key_t)); 517 517 if (immediate_exit_normal == 2) 518 518 { … … 579 579 ++immediate_exit_fast; 580 580 if (skey != NULL && immediate_exit_fast < 2) 581 memset (skey, '\0', sizeof(sh_key_t));581 memset (skey, 0, sizeof(sh_key_t)); 582 582 if (immediate_exit_fast < 2) 583 583 safe_logger (mysignal, 0, NULL); … … 591 591 ++immediate_exit_fast; 592 592 if (skey != NULL) 593 memset (skey, '\0', sizeof(sh_key_t));593 memset (skey, 0, sizeof(sh_key_t)); 594 594 close_ipc (); 595 595 safe_logger (mysignal, 0, NULL); … … 631 631 632 632 if (skey != NULL) 633 memset (skey, '\0', sizeof(sh_key_t));633 memset (skey, 0, sizeof(sh_key_t)); 634 634 close_ipc (); 635 635
Note:
See TracChangeset
for help on using the changeset viewer.