Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
OpenXG-RAN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zzha zzha
OpenXG-RAN
Commits
e0ff84f6
Commit
e0ff84f6
authored
Oct 31, 2023
by
mir
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Scan build: Argument with 'nonnull' attribute passed null
parent
82597e7e
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
3 deletions
+7
-3
common/config/config_cmdline.c
common/config/config_cmdline.c
+1
-0
common/utils/load_module_shlib.c
common/utils/load_module_shlib.c
+1
-1
openair1/SIMULATION/TOOLS/rangen_double.c
openair1/SIMULATION/TOOLS/rangen_double.c
+3
-2
openair2/E1AP/e1ap_setup.c
openair2/E1AP/e1ap_setup.c
+2
-0
No files found.
common/config/config_cmdline.c
View file @
e0ff84f6
...
...
@@ -79,6 +79,7 @@ int processoption(paramdef_t *cfgoptions, char *value) {
if
(
value
==
NULL
)
{
if
(
(
cfgoptions
->
paramflags
&
PARAMFLAG_BOOL
)
==
0
)
{
/* not a boolean, argument required */
CONFIG_PRINTF_ERROR
(
"[CONFIG] command line, option %s requires an argument
\n
"
,
cfgoptions
->
optname
);
AssertFatal
(
false
,
"[CONFIG] command line, requires an argument
\n
"
);
}
else
{
/* boolean value option without argument, set value to true*/
tmpval
=
defbool
;
}
...
...
common/utils/load_module_shlib.c
View file @
e0ff84f6
...
...
@@ -214,7 +214,7 @@ int load_module_version_shlib(char *modname, char *version, loader_shlibfunc_t *
int
j
=
0
;
for
(;
j
<
shlib
->
numfunc
;
++
j
)
{
if
(
shlib
->
funcarray
[
j
].
fptr
==
farray
[
i
].
fptr
)
{
int
rc
=
strcmp
(
shlib
->
funcarray
[
i
].
fname
,
farray
[
i
].
fname
);
int
rc
=
strcmp
(
shlib
->
funcarray
[
j
].
fname
,
farray
[
i
].
fname
);
AssertFatal
(
rc
==
0
,
"reloading the same fptr with different fnames (%s, %s)
\n
"
,
shlib
->
funcarray
[
i
].
fname
,
farray
[
i
].
fname
);
...
...
openair1/SIMULATION/TOOLS/rangen_double.c
View file @
e0ff84f6
...
...
@@ -55,8 +55,9 @@ void randominit(unsigned long seed_init)
unsigned
long
seed
=
seed_init
;
if
(
seed_init
==
0
)
fill_random
(
&
seed
,
sizeof
(
seed
));
if
(
getenv
(
"OAI_RNGSEED"
))
seed
=
atoi
(
getenv
(
"OAI_RNGSEED"
));
const
char
*
str_oai_rngseed
=
getenv
(
"OAI_RNGSEED"
);
if
(
str_oai_rngseed
!=
NULL
)
seed
=
atoi
(
str_oai_rngseed
);
printf
(
"Initializing random number generator, seed %lu
\n
"
,
seed
);
// initialize uniformrandom RNG
...
...
openair2/E1AP/e1ap_setup.c
View file @
e0ff84f6
...
...
@@ -53,10 +53,12 @@ static void get_NGU_S1U_addr(char **addr, uint16_t *port)
char
*
address
;
if
(
NETParams
[
1
].
strptr
!=
NULL
)
{
LOG_I
(
GTPU
,
"SA mode
\n
"
);
AssertFatal
(
gnb_ipv4_address_for_NGU
!=
NULL
,
"Undefined Behaviour"
);
address
=
strdup
(
gnb_ipv4_address_for_NGU
);
*
port
=
gnb_port_for_NGU
;
}
else
{
LOG_I
(
GTPU
,
"NSA mode
\n
"
);
AssertFatal
(
gnb_ipv4_address_for_S1U
!=
NULL
,
"Undefined Behaviour"
);
address
=
strdup
(
gnb_ipv4_address_for_S1U
);
*
port
=
gnb_port_for_S1U
;
}
...
...
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