Changeset 15 for trunk/src


Ignore:
Timestamp:
Jan 10, 2006, 9:18:26 PM (19 years ago)
Author:
rainer
Message:

fix segfault on startup with gpg+prelude

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/sh_prelude.c

    r2 r15  
    756756        prelude_string_t *str;
    757757               
    758         if ( sh_class == STAMP)
     758        if ( !client || sh_class == STAMP)
    759759                return 0;
    760760       
     
    872872        (void) msgflags; /* fix compiler warning */
    873873
    874         if ( initialized < 0 )
     874        if ( initialized < 1 )
    875875                return -1;
    876876       
     
    920920                return;
    921921        prelude_client_destroy(client, PRELUDE_CLIENT_EXIT_STATUS_SUCCESS);
     922        client = NULL;
    922923        initialized = 0;
    923924        return;
Note: See TracChangeset for help on using the changeset viewer.