Bug 111033 - bad source code
Summary: bad source code
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: pmake
Version: 1
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jakub Jelinek
QA Contact: Brian Brock
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2003-11-26 15:38 UTC by d.binderman
Modified: 2007-11-30 22:10 UTC (History)
0 users

Fixed In Version: 1.45-13
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2003-12-02 14:54:37 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description d.binderman 2003-11-26 15:38:49 UTC
Description of problem:
I just tried to compile package pmake-1_45-11 from Fedora.

The compiler said

job.c(1610): remark #592: variable "status" is used before its value
is set

The source code is

	int status;

	/* more code */

	W_SETTERMSIG(&status, SIGCONT);


Suggest initialise status before first use.

	int status = 0;



Version-Release number of selected component (if applicable):
pmake-1_45-11 

How reproducible:


Steps to Reproduce:
1.
2.
3.
  
Actual results:


Expected results:


Additional info:

Comment 1 Jakub Jelinek 2003-12-02 14:54:37 UTC
Added to pmake-1.45-13.


Note You need to log in before you can comment on or make changes to this bug.