Changeset 473 for trunk/src/sh_srp.c


Ignore:
Timestamp:
May 29, 2015, 10:42:18 PM (9 years ago)
Author:
katerina
Message:

Fix for ticket #371 (use cppcheck instead of uno for static checking).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_srp.c

    r454 r473  
    114114      size = strlen(str) + 1;
    115115      if (size > siz_str_internal)
    116         get_str_internal = realloc (get_str_internal, size);
     116        {
     117          char * ptr = realloc (get_str_internal, size);
     118          if (ptr)
     119            get_str_internal = ptr;
     120          else
     121            { free(get_str_internal); get_str_internal = NULL; }
     122        }
    117123      if (get_str_internal == NULL)
    118124        {
Note: See TracChangeset for help on using the changeset viewer.