Fix build warnings of GCC in release mode v0.14.1
authorHenning Rogge <henning.rogge@fkie.fraunhofer.de>
Tue, 13 Jun 2017 08:34:07 +0000 (10:34 +0200)
committerHenning Rogge <henning.rogge@fkie.fraunhofer.de>
Tue, 13 Jun 2017 08:34:07 +0000 (10:34 +0200)
src-plugins/subsystems/rfc5444/rfc5444_print.c

index 191f1ae..1661da9 100644 (file)
@@ -389,6 +389,8 @@ rfc5444_print_raw(struct autobuf *out, void *buffer, size_t length) {
       idx2 += 2;
 
       head_len = tail_len = 0;
+      head = NULL;
+      tail = NULL;
       if (flags & RFC5444_ADDR_FLAG_HEAD) {
         if (idx2 + 1 > idx + msg_size) {
           return -1;