Changeset 303 for trunk


Ignore:
Timestamp:
Nov 12, 2010, 8:24:02 PM (14 years ago)
Author:
katerina
Message:

Fix compile error when using --with-kcheck (ticket #225).

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/docs/Changelog

    r300 r303  
    112.8.1:
     2        * Fix incorrect memset() in sh_kern.c (passed struct by value...),
     3          reported by Roman and Stefan
     4        * Fix 'make install' to create user-defined directory
    25        * fix minor issues noticed by T. Luettgert (test code assumes port
    36          0/tcp is unused, wrong ifdef order (without impact on compilation))
  • trunk/src/sh_kern.c

    r294 r303  
    175175  char            path[128];
    176176  char          * p = NULL;
    177   unsigned long   x1 = 0, x2 = 0;
     177
    178178  unsigned char * name = (unsigned char *) in_name;
    179179  struct store2db save;
     
    181181  sl_snprintf(path, 128, "K_%s_%04d", prefix, num);
    182182
    183   memset(save, '\0', sizeof(struct store2db));
     183  memset(&save, '\0', sizeof(struct store2db));
    184184
    185185  if (direction == SH_KERN_DBPUSH)
Note: See TracChangeset for help on using the changeset viewer.