This will lead to a seg-fault if seg==0 which is one of the values the call can return.