A 0 length string is still a valid input and should be treated as such, a NULL return should be reserved for when errors occur during line editing or EOF is reached. Merges https://github.com/espressif/esp-idf/pull/4926