Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • help.c

    r022e77f rc92e6801  
    116116                h = h->next;
    117117        }
    118         if( h && h->length > 0 )
     118        if( h )
    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                
     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                }
    133134                s[h->length] = 0;
    134135                if( h->fd >= 0 )
     
    141142                        strncpy( s, h->offset.mem_offset, h->length );
    142143                }
    143                 return s;
     144                return( s );
    144145        }
    145146       
    146         return NULL;
     147        return( NULL );
    147148}
Note: See TracChangeset for help on using the changeset viewer.