Changeset 1920

Show
Ignore:
Timestamp:
02/25/09 12:56:50 (3 years ago)
Author:
mwhitworth
Message:

Fix case where we ignore a found entry in Applications.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • Whitix/trunk/user/burn/main.c

    r1913 r1920  
    271271struct FileDirectory* cwdir=NULL; 
    272272 
     273/* TODO: Needs tidying up and documenting. */ 
    273274char* CommandCompleter(struct ConsReadContext* context, char* string, int state) 
    274275{ 
     
    285286                currCmd = btTable; 
    286287                 
    287                 if (!dir) 
    288                         return NULL; 
    289                          
    290                 if (!cwdir) 
     288                if (!dir || !cwdir) 
    291289                        return NULL; 
    292290        } 
     
    305303                         
    306304                if (!strncasecmp(string, ent->name, strlen(string))) 
    307                         break; 
     305                        goto out; 
    308306        } 
    309307         
     
    349347        } 
    350348 
     349out: 
    351350        return strdup(ent->name); 
    352351}