[dia] [warningectomy] assignment discards 'const' qualifier from pointer target type



commit 09d91b5ef0e6e559dc209146af617a6faeb8624f
Author: Hans Breuer <hans breuer org>
Date:   Sat May 4 18:58:03 2013 +0200

    [warningectomy] assignment discards 'const' qualifier from pointer target type

 objects/chronogram/chronoline_event.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/objects/chronogram/chronoline_event.c b/objects/chronogram/chronoline_event.c
index 6af053c..05f0c0d 100644
--- a/objects/chronogram/chronoline_event.c
+++ b/objects/chronogram/chronoline_event.c
@@ -274,7 +274,8 @@ reparse_clevent(const gchar *events, CLEventList **lst,
         *p = '.';
     }
   } else {
-    ps = events;
+    /* must not be freed below */
+    ps = (gchar *)events;
   }
   destroy_clevent_list(*lst);
   *lst = parse_clevent(ps,rise,fall);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]