summaryrefslogtreecommitdiff
path: root/src/list.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/list.c')
-rw-r--r--src/list.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/list.c b/src/list.c
index 992721d..b43cd59 100644
--- a/src/list.c
+++ b/src/list.c
@@ -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();