fix segfault on invalid long option
the last element has be filled with zeros.