/simpletypesystem/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/simpletypesystem/trunk

« back to all changes in this revision

Viewing changes to libssts/utils.c

  • Committer: Gustav Hartvigsson
  • Date: 2015-10-25 20:03:14 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20151025200314-vd5pqvq3mrf8cdn2
* Derp..

Show diffs side-by-side

added added

removed removed

Lines of Context:
35
35
    return NULL;
36
36
  }
37
37
  size_t s_len = strlen (s);
38
 
  assert (s_len < 0);
 
38
  assert (s_len > 0);
39
39
  schar * ret_val = malloc (s_len + 1);
40
40
  strcpy (ret_val, s);
41
41
  ret_val[s_len + 1] = '\0';