aboutsummaryrefslogtreecommitdiffstats
path: root/src/tagTracker.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/tagTracker.c')
-rw-r--r--src/tagTracker.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/tagTracker.c b/src/tagTracker.c
index 6007c396e..93d3d1928 100644
--- a/src/tagTracker.c
+++ b/src/tagTracker.c
@@ -20,6 +20,8 @@
#include "tree.h"
#include "log.h"
+#include "utils.h"
+#include "myfprintf.h"
#include <assert.h>
#include <stdlib.h>
@@ -57,8 +59,8 @@ char *getTagItemString(int type, char *string)
}
else
{
- TagTrackerItem *item = malloc(sizeof(TagTrackerItem));
- char *key = strdup(string);
+ TagTrackerItem *item = xmalloc(sizeof(TagTrackerItem));
+ char *key = xstrdup(string);
item->count = 1;
item->visited = 0;
InsertInTree(tagTrees[type], key, item);