summaryrefslogtreecommitdiff
path: root/src/manage.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/manage.c')
-rw-r--r--src/manage.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/manage.c b/src/manage.c
index 0eb0e28..38d9c93 100644
--- a/src/manage.c
+++ b/src/manage.c
@@ -107,11 +107,8 @@ get_window_name (Window w)
if (list_len > 0)
{
- if ((name = malloc (strlen (name_list[0]) + 1)) == NULL)
- {
- PRINT_ERROR ("Out of memory!\n");
- exit (EXIT_FAILURE);
- }
+ name = xmalloc (strlen (name_list[0]) + 1);
+
strcpy (name, name_list[0]);
/* Its our responsibility to free this. */