summaryrefslogtreecommitdiff
path: root/Tools/CCode/Source/GenCRC32Section/GenCRC32Section.c
diff options
context:
space:
mode:
Diffstat (limited to 'Tools/CCode/Source/GenCRC32Section/GenCRC32Section.c')
-rw-r--r--Tools/CCode/Source/GenCRC32Section/GenCRC32Section.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/Tools/CCode/Source/GenCRC32Section/GenCRC32Section.c b/Tools/CCode/Source/GenCRC32Section/GenCRC32Section.c
index 5c9af78181..678275a367 100644
--- a/Tools/CCode/Source/GenCRC32Section/GenCRC32Section.c
+++ b/Tools/CCode/Source/GenCRC32Section/GenCRC32Section.c
@@ -239,6 +239,11 @@ main (
OutputFileName = NULL;
SetUtilityName (UTILITY_NAME);
+
+ if (argc == 1) {
+ Usage ();
+ return -1;
+ }
if ((strcmp(argv[1], "-h") == 0) || (strcmp(argv[1], "--help") == 0) ||
(strcmp(argv[1], "-?") == 0) || (strcmp(argv[1], "/?") == 0)) {
@@ -250,11 +255,6 @@ main (
Version();
return -1;
}
-
- if (argc == 1) {
- Usage ();
- return -1;
- }
BufferSize = 1024 * 1024 * 16;
FileBuffer = (UINT8 *) malloc (BufferSize * sizeof (UINT8));