Daniel-Constantin Mierla writes: > Ok if ret is set properly (to indicate it is an error) before any goto > error. yes it is, because ret is initialized to -1 at declaration: int ret = -1; -- juha