Skip to content

Commit

Permalink
src/Arch.c :check the number of arguments(config)
Browse files Browse the repository at this point in the history
  • Loading branch information
yuk7 committed Oct 20, 2017
1 parent 3ee77b2 commit b8f9c83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Arch.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ int main(int argc,char *argv[])
if(strcmp(argv[1],"run") == 0)
{
}
else if(strcmp(argv[1],"config") == 0)
else if((strcmp(argv[1],"config") == 0)&&argc>3)
{
if(strcmp(argv[2],"--default-uid") == 0)
{
Expand Down

0 comments on commit b8f9c83

Please sign in to comment.