Changeset 362 for trunk/src/sh_log_check.c
- Timestamp:
- Oct 19, 2011, 12:16:31 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/sh_log_check.c
r358 r362 1027 1027 * Reader for binary files 1028 1028 */ 1029 sh_string * sh_binary_reader (void * s, size_t size, struct sh_logfile * logfile) 1029 sh_string * sh_binary_reader (void * s, size_t size, 1030 struct sh_logfile * logfile) 1030 1031 { 1031 1032 size_t status; … … 1040 1041 if (status != 1) 1041 1042 { 1043 memset(s, '\0', size); 1042 1044 if (ferror(logfile->fp) && (logfile->flags & SH_LOGFILE_PIPE) == 0) 1043 1045 { … … 1053 1055 sl_fclose(FIL__, __LINE__, logfile->fp); 1054 1056 logfile->fp = NULL; 1055 memset(s, '\0', size);1056 1057 return NULL; 1057 1058 } … … 1387 1388 retval = -1; 1388 1389 } 1389 1390 sh_logmon_interval = (time_t) val; 1391 SL_RETURN(0, _("sh_logmon_set_interval")); 1390 else 1391 { 1392 sh_logmon_interval = (time_t) val; 1393 } 1394 SL_RETURN(retval, _("sh_logmon_set_interval")); 1392 1395 } 1393 1396
Note:
See TracChangeset
for help on using the changeset viewer.