Changeset 3433

Show
Ignore:
Timestamp:
02/27/08 11:26:58
Author:
svillar
Message:
  • Fixed a SIGSEV when ptr is NULL
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/libtinymail-maemo/tny-maemo-account-store.c

    r3385 r3433  
    155155 
    156156        gchar *key = entry->key ? g_strdup (entry->key) : g_strdup (""); 
    157         gchar *ptr = strrchr (key, '/');  
    158  
    159         if (ptr) 
     157        gchar *ptr = strrchr (key, '/'); 
     158 
     159        if (ptr) { 
    160160                ptr++; 
    161  
    162         if (!strcmp (ptr, "count")) 
    163                kill_stored_accounts (priv); 
     161                if (!strcmp (ptr, "count")) 
     162                       kill_stored_accounts (priv); 
     163        } 
    164164 
    165165        g_free (key);