Commit 16e3ba24 authored by Per Cederqvist's avatar 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.
parent afa0c70a
2006-09-09 Per Cederqvist <ceder@lysator.liu.se>
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 <ceder@lysator.liu.se>
Rename the aux-item field "unique" to "one-per-person".
......
......@@ -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;
......
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment