X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Usermode%2FApplications%2FCLIShell_src%2Fmain.c;h=1a501ad17c453dea52cba74bdaeaed8326d247d9;hb=d9b454656314400cf673ac7cb2923ac0f2bbd676;hp=501359a8f45b87b0fdae5ffa99f541663da61a38;hpb=98ea056d588fc2041d1816e67d18d2dd9364da1a;p=tpg%2Facess2.git diff --git a/Usermode/Applications/CLIShell_src/main.c b/Usermode/Applications/CLIShell_src/main.c index 501359a8..1a501ad1 100644 --- a/Usermode/Applications/CLIShell_src/main.c +++ b/Usermode/Applications/CLIShell_src/main.c @@ -8,6 +8,7 @@ #include #include "header.h" #include +#include #define _stdin 0 #define _stdout 1 @@ -80,6 +81,10 @@ int main(int argc, char *argv[], char **envp) // Read Command line sCommandStr = Readline( readline_state ); printf("\n"); + if( !sCommandStr ) { + perror("Readline"); + return 1; + } // Parse Command Line into arguments iArgCount = Parse_Args(sCommandStr, saArgs);