]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ShellPkg/Library/UefiShellDebug1CommandsLib/Edit/MainTextEditor.c
Update code to support VS2013 tool chain.
[mirror_edk2.git] / ShellPkg / Library / UefiShellDebug1CommandsLib / Edit / MainTextEditor.c
index a1564d4f5a146530dde5b080e563976e71044c45..f972c378397ffe14a5ce238fcfb02043ffe5d3e8 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Implements editor interface functions.\r
 \r
-  Copyright (c) 2005 - 2012, Intel Corporation. All rights reserved. <BR>\r
+  Copyright (c) 2005 - 2014, Intel Corporation. All rights reserved. <BR>\r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
   which accompanies this distribution.  The full text of the license may be found at\r
@@ -489,6 +489,7 @@ MainCommandCutLine (
   //     IF cursor is not on valid line, an Status String will be prompted :\r
   //        "Nothing to Cut".\r
   //\r
+  Line = NULL;\r
   Status = FileBufferCutLine (&Line);\r
   if (Status == EFI_NOT_FOUND) {\r
     return EFI_SUCCESS;\r