Skip to content

Conversation

goodpaperman
Copy link
Contributor

simple type mistake, only reproduct on macOS (?)
'optarg' is a global variable, can be used directly,
but macOS choked on that ,
and I see all other functions passing a parameter instead the global variable,
so here just add a function parameter.

Signed-off-by: yunh haihai107@126.com

Signed-off-by: yunh <haihai107@126.com>
@emcrisostomo
Copy link
Owner

I can't reproduce it. However, I agree that we should not use the global variable there.

@emcrisostomo emcrisostomo merged commit 66a534e into emcrisostomo:master Jun 1, 2021
@emcrisostomo emcrisostomo changed the title fix compile error on macOS Do not use global variable in function, pass parameter instead. Jun 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants