Bug 155824 - printf problems + local variable used before set
printf problems + local variable used before set
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: libsepol (Show other bugs)
rawhide
All Linux
medium Severity medium
: ---
: ---
Assigned To: Daniel Walsh
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2005-04-24 04:53 EDT by David Binderman
Modified: 2007-11-30 17:11 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2005-08-20 03:44:07 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)

  None (edit)
Description David Binderman 2005-04-24 04:53:25 EDT
Description of problem:

I just tried to compile libsepol-1.5.5-1 from Redhat
Fedora Core development tree with the most excellent Intel C
compiler.

The compiler said

1.

genbools.c(199): warning #267: the format string requires additional arguments

The source code is

	__sepol_debug_printf("%s:  Error while re-evaluating conditionals: %s\n",
                                     __FUNCTION__);

Two %s specifiers, only one trailing parameter. Suggest code rework.

2.

hierarchy.c(294): remark #592: variable "eb" is used before its value is set

The source code is

	if (ebitmap_or(eb, &r->types, &rp->types)) {

Suggest initialise local variable "eb" before first use.


Version-Release number of selected component (if applicable):


How reproducible:


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


Expected results:


Additional info:
Comment 1 Daniel Walsh 2005-04-25 15:38:59 EDT
Fixed in libsepol-1.5.5-2
Comment 2 Marius Andreiana 2005-08-20 03:44:07 EDT
libsepol-1.5.10-1.1 is in FC4

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