Changeset 83

Show
Ignore:
Timestamp:
04/22/08 13:02:46
Author:
pvanhoof
Message:

Support for value-less cameloptions

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/src/tmut-account-store.c

    r82 r83  
    135135                                gchar *key = str; 
    136136                                gchar *value = strchr (str, '='); 
    137                                 *value = '\0'; 
    138                                 value++; 
     137 
     138                                if (value) { 
     139                                        *value = '\0'; 
     140                                        value++; 
     141                                } else 
     142                                        value = ""; 
     143 
    139144                                tny_camel_account_add_option (TNY_CAMEL_ACCOUNT (account),  
    140145                                        tny_pair_new (key, value));