Re: [anaconda-storage-branch PATCH 2/6] Fix error message reading and writing in doPwMount()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> diff --git a/isys/imount.c b/isys/imount.c
> index e102206..614e67e 100644
> --- a/isys/imount.c
> +++ b/isys/imount.c
> @@ -146,9 +146,9 @@ int doPwMount(char *dev, char *where, char *fs, char *options, char **err) {
>  
>      close(pipefd[1]);
>  
> -    if (err != NULL) {
> +    if (*err != NULL) {
>          rc = readFD(pipefd[0], err);
> -        rc = write(programLogFD, err, 4096);
> +        rc = write(programLogFD, *err, 4096);
>      }
>  
>      close(pipefd[0]);

Yet more evidence that I should never be allowed to use double pointers.
I do not, in fact, wish to double my fun.

- Chris

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list

[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux