all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Problem report #31
@ 2006-04-11 15:48 Dan Nicolaescu
  2006-04-11 17:34 ` Stuart D. Herring
  0 siblings, 1 reply; 3+ messages in thread
From: Dan Nicolaescu @ 2006-04-11 15:48 UTC (permalink / raw)



CID: 31
Checker: NEGATIVE_RETURNS (help)
File: emacs/src/process.c
Function: Fprocess_send_eof
Description: Tracked variable "new_outfd" used as index to array "proc_encode_coding_system"

Event negative_return_fn: Called negative-returning function "emacs_open" [model]
Event var_assign: NEGATIVE return value of "emacs_open" assigned to signed variable "new_outfd"
Also see events: [var_assign][negative_returns]

6233 	      new_outfd = emacs_open (NULL_DEVICE, O_WRONLY, 0);
6234 	      old_outfd = XINT (XPROCESS (proc)->outfd);
6235 	

Event negative_returns: Tracked variable "new_outfd" used as index to array "proc_encode_coding_system"
Also see events: [negative_return_fn][var_assign]

6236 	      if (!proc_encode_coding_system[new_outfd])
6237 		proc_encode_coding_system[new_outfd]
6238 		  = (struct coding_system *) xmalloc (sizeof (struct coding_system));
6239 	      bcopy (proc_encode_coding_system[old_outfd],
6240 		     proc_encode_coding_system[new_outfd],
6241 		     sizeof (struct coding_system));
6242 	      bzero (proc_encode_coding_system[old_outfd],
6243 		     sizeof (struct coding_system));

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Problem report #31
  2006-04-11 15:48 Problem report #31 Dan Nicolaescu
@ 2006-04-11 17:34 ` Stuart D. Herring
  2006-04-12 17:10   ` Richard Stallman
  0 siblings, 1 reply; 3+ messages in thread
From: Stuart D. Herring @ 2006-04-11 17:34 UTC (permalink / raw)


> Event var_assign: NEGATIVE return value of "emacs_open" assigned to signed
> variable "new_outfd"
> Also see events: [var_assign][negative_returns]
>
> 6233 	      new_outfd = emacs_open (NULL_DEVICE, O_WRONLY, 0);
> 6234 	      old_outfd = XINT (XPROCESS (proc)->outfd);
> 6235
>
> Event negative_returns: Tracked variable "new_outfd" used as index to
> array "proc_encode_coding_system"
> Also see events: [negative_return_fn][var_assign]
>
> 6236 	      if (!proc_encode_coding_system[new_outfd])

Seems kinda unlikely that opening the null device would fail, but I
suppose it's possible.  Should probably check this.

Davis

-- 
This product is sold by volume, not by mass.  If it appears too dense or
too sparse, it is because mass-energy conversion has occurred during
shipping.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Problem report #31
  2006-04-11 17:34 ` Stuart D. Herring
@ 2006-04-12 17:10   ` Richard Stallman
  0 siblings, 0 replies; 3+ messages in thread
From: Richard Stallman @ 2006-04-12 17:10 UTC (permalink / raw)
  Cc: emacs-devel

    Seems kinda unlikely that opening the null device would fail, but I
    suppose it's possible.  Should probably check this.

I put that in.  Thanks.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-04-12 17:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-11 15:48 Problem report #31 Dan Nicolaescu
2006-04-11 17:34 ` Stuart D. Herring
2006-04-12 17:10   ` Richard Stallman

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.