Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
openairinterface5G
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Merge Requests
18
Merge Requests
18
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
oai
openairinterface5G
Commits
eb48479b
Commit
eb48479b
authored
Feb 19, 2016
by
nikaeinn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
check the rf_config_file name, and ignore if it is null
parent
f261adc7
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
targets/RT/USER/rrh_gw.c
targets/RT/USER/rrh_gw.c
+11
-5
No files found.
targets/RT/USER/rrh_gw.c
View file @
eb48479b
...
...
@@ -299,11 +299,17 @@ static void get_options(int argc, char *argv[]) {
loopback_flag
=
1
;
break
;
case
'f'
:
if
(
strlen
(
optarg
)
<=
1024
)
strcpy
(
rf_config_file
,
optarg
);
else
{
printf
(
"Configuration filename is too long
\n
"
);
exit
(
-
1
);
if
(
optarg
){
if
((
strcmp
(
"null"
,
optarg
)
==
0
)
||
(
strcmp
(
"NULL"
,
optarg
)
==
0
))
{
printf
(
"no configuration filename is provided
\n
"
);
}
else
if
(
strlen
(
optarg
)
<=
1024
){
// rf_config_file = strdup(optarg);
strcpy
(
rf_config_file
,
optarg
);
}
else
{
printf
(
"Configuration filename is too long
\n
"
);
exit
(
-
1
);
}
}
break
;
case
't'
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment