[Fix] check if compinit
is called before calling it
#2490
Merged
compinit
is called before calling it
#2490