Browse Source

sanitizing

doc_update_sequoia
Volker Birk 5 years ago
parent
commit
9c4bb398da
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      src/timestamp.c

+ 5
- 1
src/timestamp.c View File

@ -30,9 +30,13 @@ DYNAMIC_API void free_timestamp(timestamp *ts)
DYNAMIC_API timestamp * timestamp_dup(const timestamp *src)
{
assert(src);
if (!src)
return NULL;
timestamp *dst = malloc(sizeof(timestamp));
assert(dst);
if (dst == NULL)
if (!dst)
return NULL;
memcpy(dst, src, sizeof(timestamp));


Loading…
Cancel
Save