* minor change

(try to workaround
      https://code.google.com/p/mu0/issues/detail?id=79,
   though I can't reproduce it at all)
This commit is contained in:
djcb 2013-12-21 10:24:15 -08:00
parent 0277967b53
commit 0de40a2f93
2 changed files with 5 additions and 3 deletions

View File

@ -455,9 +455,11 @@ static void
output_plain_fields (MuMsg *msg, const char *fields,
gboolean color, gboolean threads)
{
const char* myfields;
int nonempty;
const char* myfields;
int nonempty;
g_return_if_fail (fields);
for (myfields = fields, nonempty = 0; *myfields; ++myfields) {
MuMsgFieldId mfid;

View File

@ -180,7 +180,7 @@ set_group_find_defaults (void)
/* note, when no fields are specified, we use
* date-from-subject, and sort descending by date. If fields
* *are* specified, we sort in ascending order. */
if (!MU_CONFIG.fields) {
if (!MU_CONFIG.fields || !*MU_CONFIG.fields) {
MU_CONFIG.fields = "d f s";
if (!MU_CONFIG.sortfield)
MU_CONFIG.sortfield = "d";