Changeset 388 for trunk


Ignore:
Timestamp:
Feb 9, 2012, 7:54:18 PM (13 years ago)
Author:
katerina
Message:

Fix for ticket #285 (NULL pointer dereference on systems without inotify).

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/docs/Changelog

    r387 r388  
    1 3.0.2:  * fixed: the config file template mentions (in a comment) the
     13.0.2:
     2        * fixed a potential NULL pointer dereference in sh_inotify.c on
     3          systems where inotify is not available (reported by <anonymous>)
     4        * fixed: the config file template mentions (in a comment) the
    25          non-existent directive SetLockPath instead of the correct
    36          SetLockfilePath (reported by Curtis).
  • trunk/src/sh_inotify.c

    r383 r388  
    862862  retry_msleep(waitsec, 0);
    863863
    864   *errnum = 0;
     864  if (errnum)
     865    *errnum = 0;
    865866  return -1;
    866867}
     
    875876  (void) type;
    876877  (void) rdepth;
    877   *errnum = 0;
     878
     879  if (errnum)
     880    *errnum = 0;
    878881  return 0;
    879882}
     
    889892  (void) type;
    890893  (void) rdepth;
    891   *errnum = 0;
     894
     895  if (errnum)
     896    *errnum = 0;
    892897  return 0;
    893898}
Note: See TracChangeset for help on using the changeset viewer.