From e470bad72186d359a414097f14068090e5ea9ec8 Mon Sep 17 00:00:00 2001 From: Christoph von Wittich Date: Thu, 2 Aug 2007 01:45:02 +0000 Subject: [PATCH] fix null pointer check svn path=/trunk/; revision=28092 --- reactos/base/shell/cmd/start.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/base/shell/cmd/start.c b/reactos/base/shell/cmd/start.c index 9782c545d9c..3cab8b2711f 100644 --- a/reactos/base/shell/cmd/start.c +++ b/reactos/base/shell/cmd/start.c @@ -135,8 +135,8 @@ INT cmd_start (LPTSTR First, LPTSTR Rest) return 1; } - param =cmd_alloc ( (_tcslen(RestWithoutArgs) + 1) * sizeof(TCHAR)); - if (rest == NULL) + param = cmd_alloc ( (_tcslen(RestWithoutArgs) + 1) * sizeof(TCHAR)); + if (param == NULL) { if(comspec != NULL) cmd_free(comspec);