diff --git a/ChangeLog b/ChangeLog index 26afc1a3063b5d8f5bba291dba79d1ecf34dfd96..278c87867f64d51f42b4eda8f5edd1c342365130 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,13 @@ +2006-09-09 Per Cederqvist + + Get rid of gcc-4.1.1 warnings by initializing more fields. + * src/libraries/libcommon/misc-parser.c (parse_next_misc): + Initialize bcc_recipient, received_at and is_sent. This gets rid + of a gcc-4.1.1 warning. + * src/libraries/libcommon/parser.c (parse): Always initialize + answer.arguments and answer.indexes, to get rid of a gcc-4.1.1 + warning. + 2006-09-02 Per Cederqvist Rename the aux-item field "unique" to "one-per-person". diff --git a/src/libraries/libcommon/misc-parser.c b/src/libraries/libcommon/misc-parser.c index 733903524729522b3781583264c0160577c954e8..a9cf05a57fb1da1bf1d288e744f554b7b9ac4e41 100644 --- a/src/libraries/libcommon/misc-parser.c +++ b/src/libraries/libcommon/misc-parser.c @@ -94,13 +94,16 @@ parse_next_misc (const Misc_info ** info, result.type = m_error; result.recipient = 0; result.cc_recipient = 0; + result.bcc_recipient = 0; result.local_no = 0; - result.is_received = FALSE; + result.received_at = NO_TIME; result.comment_to = 0; result.commented_in = 0; result.footnote_to = 0; result.footnoted_in = 0; result.sender = 0; + result.sent_at = NO_TIME; + result.is_received = FALSE; result.is_sent = FALSE; diff --git a/src/libraries/libcommon/parser.c b/src/libraries/libcommon/parser.c index 57b58d0ac49c6b158100a34084ada8ea36a4fd0b..b1740b0b25bb997ebf5a9dd6f0b4c8706354dbce 100644 --- a/src/libraries/libcommon/parser.c +++ b/src/libraries/libcommon/parser.c @@ -323,11 +323,13 @@ parse (String source_string, const int chunk_size = 20; + answer.arguments = EMPTY_STRING; source_words = tokenize(source_string, separators); if (source_words == NULL) { answer.no_of_matches = -1; + answer.indexes = 0; return answer; } @@ -397,6 +399,7 @@ parse (String source_string, FREE (source_words); FREE (answer.indexes); answer.no_of_matches = -1; + answer.indexes = NULL; return answer; }