Changeset 16452

Show
Ignore:
Timestamp:
02/17/06 06:43:47 (3 years ago)
Author:
axeld
Message:

No longer says "unknown command" to an empty input string in the debugger.
This fixes bug #189.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • haiku/trunk/src/system/kernel/debug/debug.c

    r16290 r16452  
    254254        strcpy(sParseLine, buf); 
    255255 
    256         if (!isspace(sParseLine[0])) { 
     256        if (sParseLine[0] != '\0' && !isspace(sParseLine[0])) { 
    257257                argv[0] = sParseLine; 
    258258                *argc = 1;