Erratic behaviour of make_empty_graph(NULL)

,

make_empty_graph(NULL) gives sometimes

IGRAPH d2cceb6 D--- 301407984 0 -- 
+ edges from d2cceb6:

or

Error: cannot allocate vector of size 2.2 Gb

Is this a C library issue and what is the appropriate place to address this issue.

I am aware NULL != 0, but the function should either give an error or behave as if no parameters.

It is not a C library issue.

I guess the glue code between R and C ought to check that integers have at least size 1 (since R works with vectors, they can be size 0), and that they are not NA. I am not that familiar with the R interface.