Changes in help.c [022e77f:c92e6801]
Legend:
- Unmodified
- Added
- Removed
-
help.c
r022e77f rc92e6801 116 116 h = h->next; 117 117 } 118 if( h && h->length > 0)118 if( h ) 119 119 { 120 120 char *s = g_new( char, h->length + 1 ); … … 123 123 { 124 124 g_free( h ); 125 *help =NULL;126 return NULL;125 *help=NULL; 126 return( NULL ); 127 127 } 128 128 mtime = stat->st_mtime; 129 129 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 } 133 134 s[h->length] = 0; 134 135 if( h->fd >= 0 ) … … 141 142 strncpy( s, h->offset.mem_offset, h->length ); 142 143 } 143 return s;144 return( s ); 144 145 } 145 146 146 return NULL;147 return( NULL ); 147 148 }
Note: See TracChangeset
for help on using the changeset viewer.