FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian Development

 
 
LinkBack Thread Tools
 
Old 03-18-2009, 12:52 PM
Chris Lumens
 
Default Fix error message reading and writing in doPwMount()

> 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@redhat.com
https://www.redhat.com/mailman/listinfo/anaconda-devel-list
 

Thread Tools




All times are GMT. The time now is 06:21 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org