[Libvir] [PATCH] Don't access line[-1] for a zero-length "line" from fgets.