diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-08-18 10:28:21 -0700 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2013-08-18 10:28:21 -0700 |
commit | c2e232e6915356eba3edf2efea99720746694c52 (patch) | |
tree | 405691284d85ae87a5261b43c950d26af102d17a /src/list.c | |
parent | 58f3c3b8d518786764f45ac2be1f1f0850129125 (diff) |
Stop casting return values from malloc & calloc
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'src/list.c')
-rw-r--r-- | src/list.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -91,7 +91,7 @@ AddToList(name_list **list_head, char *name, char *ptr) if (!list_head) return; /* ignore empty inserts */ - nptr = (name_list *)malloc(sizeof(name_list)); + nptr = malloc(sizeof(name_list)); if (nptr == NULL) { twmrc_error_prefix(); |