From 1be006f2cf810763f05308c49f972957cdca7006 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Fri, 17 Feb 2006 11:43:47 +0000 Subject: [PATCH] No longer says "unknown command" to an empty input string in the debugger. This fixes bug #189. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@16452 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/system/kernel/debug/debug.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/system/kernel/debug/debug.c b/src/system/kernel/debug/debug.c index f032ea4c50..b7263e5a8e 100644 --- a/src/system/kernel/debug/debug.c +++ b/src/system/kernel/debug/debug.c @@ -253,7 +253,7 @@ parse_line(char *buf, char **argv, int *argc, int max_args) strcpy(sParseLine, buf); - if (!isspace(sParseLine[0])) { + if (sParseLine[0] != '\0' && !isspace(sParseLine[0])) { argv[0] = sParseLine; *argc = 1; } else