Changeset 3e267492fd290f3bb1287ef6a43f82c5b218181c

Show
Ignore:
Timestamp:
01/04/12 15:05:33 (2 years ago)
Author:
Theo Schlossnagle <jesus@omniti.com>
git-committer:
Theo Schlossnagle <jesus@omniti.com> 1325689533 -0500
git-parent:

[c6c11c3827cd812cc0f9cc92cf6de8140b859416]

git-author:
Theo Schlossnagle <jesus@omniti.com> 1325689533 -0500
Message:

this appears to be an edge-condition crash bug in command-line editing

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • src/noit_console_complete.c

    rdfec968 r3e26749  
    8383  while(next) { 
    8484    cmd = next->data; 
    85     if(strncasecmp(cmd->name, argv[0], strlen(argv[0])) == 0) { 
     85    if(cmd && strncasecmp(cmd->name, argv[0], strlen(argv[0])) == 0) { 
    8686      if(idx == i) return strdup(cmd->name); 
    8787      i++;