clean up error code collection
This commit is contained in:
4
XD.c
4
XD.c
@ -188,7 +188,9 @@ main(int argc, char *argv[])
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* get exit code from user args */
|
/* get exit code from user args */
|
||||||
code = atoi(argv[1] ? argv[1] : "-1");
|
if (argv[1]) {
|
||||||
|
code = atoi(argv[1]);
|
||||||
|
}
|
||||||
|
|
||||||
/* change mouth based on exit code */
|
/* change mouth based on exit code */
|
||||||
if (code >= 0) {
|
if (code >= 0) {
|
||||||
|
Reference in New Issue
Block a user