summaryrefslogtreecommitdiffhomepage
path: root/parser/raylib_parser.c
diff options
context:
space:
mode:
authorRay <[email protected]>2021-06-13 12:08:44 +0200
committerRay <[email protected]>2021-06-13 12:08:44 +0200
commit3e68059556f628a172292ec99389fe2fbd820716 (patch)
treefb2026f42b5702d5e1040bdd865e0a4e7828c920 /parser/raylib_parser.c
parent213c990eda36f7981434bbd15163cc8b8cbe4bfe (diff)
parent929fa5780da0230f4e20bb45549f91d23f8e700d (diff)
downloadraylib-3e68059556f628a172292ec99389fe2fbd820716.tar.gz
raylib-3e68059556f628a172292ec99389fe2fbd820716.zip
Merge branch 'master' of https://github.com/raysan5/raylib
Diffstat (limited to 'parser/raylib_parser.c')
-rw-r--r--parser/raylib_parser.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/parser/raylib_parser.c b/parser/raylib_parser.c
index 751e0cad..f2f3109f 100644
--- a/parser/raylib_parser.c
+++ b/parser/raylib_parser.c
@@ -115,7 +115,7 @@ char* CharReplace(char* text, char search, char replace);
int main(int argc, char* argv[])
{
// Help
- if (IsTextEqual(argv[1], "--help", 6)) {
+ if (argv[1] != NULL && IsTextEqual(argv[1], "--help", 6)) {
printf("Usage:\n");
printf(" raylib_parser [--json]\n");
return 0;
@@ -123,7 +123,7 @@ int main(int argc, char* argv[])
// Allow changing the output format.
int outputFormat = 0;
- if (IsTextEqual(argv[1], "--json", 6)) {
+ if (argv[1] != NULL && IsTextEqual(argv[1], "--json", 6)) {
outputFormat = JSON;
}