Changeset 022e77f
- Timestamp:
- 2006-03-06T12:15:46Z (19 years ago)
- Branches:
- master
- Children:
- 55cc2be3
- Parents:
- 26fdfc5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
help.c
r26fdfc5 r022e77f 116 116 h = h->next; 117 117 } 118 if( h )118 if( h && h->length > 0 ) 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 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 134 133 s[h->length] = 0; 135 134 if( h->fd >= 0 ) … … 142 141 strncpy( s, h->offset.mem_offset, h->length ); 143 142 } 144 return ( s );143 return s; 145 144 } 146 145 147 return ( NULL );146 return NULL; 148 147 }
Note: See TracChangeset
for help on using the changeset viewer.