git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Kernel/VFS - Added warning (instead of LOG) when GetNodeFromInode is unsupported
[tpg/acess2.git]
/
Usermode
/
Applications
/
CLIShell_src
/
main.c
diff --git
a/Usermode/Applications/CLIShell_src/main.c
b/Usermode/Applications/CLIShell_src/main.c
index
501359a
..
1a501ad
100644
(file)
--- a/
Usermode/Applications/CLIShell_src/main.c
+++ b/
Usermode/Applications/CLIShell_src/main.c
@@
-8,6
+8,7
@@
#include <string.h>
\r
#include "header.h"
\r
#include <readline.h>
\r
#include <string.h>
\r
#include "header.h"
\r
#include <readline.h>
\r
+#include <errno.h>
\r
\r
#define _stdin 0
\r
#define _stdout 1
\r
\r
#define _stdin 0
\r
#define _stdout 1
\r
@@
-80,6
+81,10
@@
int main(int argc, char *argv[], char **envp)
// Read Command line
\r
sCommandStr = Readline( readline_state );
\r
printf("\n");
\r
// Read Command line
\r
sCommandStr = Readline( readline_state );
\r
printf("\n");
\r
+ if( !sCommandStr ) {
\r
+ perror("Readline");
\r
+ return 1;
\r
+ }
\r
\r
// Parse Command Line into arguments
\r
iArgCount = Parse_Args(sCommandStr, saArgs);
\r
\r
// Parse Command Line into arguments
\r
iArgCount = Parse_Args(sCommandStr, saArgs);
\r
UCC
git Repository :: git.ucc.asn.au