Changeset 601e813 for help.c


Ignore:
Timestamp:
2006-05-24T23:04:18Z (18 years ago)
Author:
Jelmer Vernooij <jelmer@…>
Branches:
master
Children:
80c1e4d
Parents:
46ad029 (diff), fc630f9 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

[merge] Wilmer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • help.c

    r46ad029 r601e813  
    116116                h = h->next;
    117117        }
    118         if( h )
     118        if( h && h->length > 0 )
    119119        {
    120120                char *s = g_new( char, h->length + 1 );
     
    123123                {
    124124                        g_free( h );
    125                         *help=NULL;
    126                         return( NULL );
     125                        *help = NULL;
     126                        return NULL;
    127127                }
    128128                mtime = stat->st_mtime;
    129129               
    130                 if( mtime > h->mtime ) {
    131                         return( NULL );
    132                         return( g_strdup( "Help file changed during this session. Please restart to get help back." ) );
    133                 }
     130                if( mtime > h->mtime )
     131                        return NULL;
     132               
    134133                s[h->length] = 0;
    135134                if( h->fd >= 0 )
     
    142141                        strncpy( s, h->offset.mem_offset, h->length );
    143142                }
    144                 return( s );
     143                return s;
    145144        }
    146145       
    147         return( NULL );
     146        return NULL;
    148147}
Note: See TracChangeset for help on using the changeset viewer.