SEGFAULT OK WHEN PROMPT = NULL