Changeset 1920
- Timestamp:
- 02/25/09 12:56:50 (3 years ago)
- Files:
-
- 1 modified
-
Whitix/trunk/user/burn/main.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
Whitix/trunk/user/burn/main.c
r1913 r1920 271 271 struct FileDirectory* cwdir=NULL; 272 272 273 /* TODO: Needs tidying up and documenting. */ 273 274 char* CommandCompleter(struct ConsReadContext* context, char* string, int state) 274 275 { … … 285 286 currCmd = btTable; 286 287 287 if (!dir) 288 return NULL; 289 290 if (!cwdir) 288 if (!dir || !cwdir) 291 289 return NULL; 292 290 } … … 305 303 306 304 if (!strncasecmp(string, ent->name, strlen(string))) 307 break;305 goto out; 308 306 } 309 307 … … 349 347 } 350 348 349 out: 351 350 return strdup(ent->name); 352 351 }
