Jim Meyering wrote:
> +     /* Record failure if any of these fails,
> +        and be careful always to close the stream.  */
> +     if ((fseek(fp, 0, SEEK_END) < 0)
> +         + (fprintf(fp, "\n#UUID: %s\n", uuidstr) < 0);
> +         + (fclose(fp) == EOF))
> +         ret = -1;

I don't think you want to fprintf() if the fseek() fails?

-jim

--
Libvir-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/libvir-list

Reply via email to