]> diplodocus.org Git - nmh/blobdiff - sbr/icalparse.y
dropsbr.c: Flip mbx_open()'s logic to simplify.
[nmh] / sbr / icalparse.y
index 972ff983d87adea77ee24726d6c43bcf3fee33d3..7730726ff617e590ce6332eda3b481154209ee91 100644 (file)
@@ -1,5 +1,4 @@
-/*
- * icalparse.y -- icalendar (RFC 5545) parser
+/* icalparse.y -- icalendar (RFC 5545) parser
  *
  * This code is Copyright (c) 2014, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
  *
  * This code is Copyright (c) 2014, by the authors of nmh.  See the
  * COPYRIGHT file in the root directory of the nmh distribution for
@@ -149,7 +148,7 @@ add_contentline (contentline *node, const char *name) {
     contentline *new_node;
 
     NEW0(new_node);
     contentline *new_node;
 
     NEW0(new_node);
-    new_node->name  = strdup (name);
+    new_node->name  = mh_xstrdup (name);
     new_node->next = node->next;
     node->next = new_node;
 
     new_node->next = node->next;
     node->next = new_node;