- Description has changed:

Diff:

~~~~

--- old
+++ new
@@ -1,48 +1,48 @@
-Line | Id | CWE | Severity | Message
-
-lga_mds.c    1240  redundantAssignment  performance  Variable 'rc' is 
reassigned a value before the old one has been used.
-lga_mds.c    692   unreadVariable       style        Variable 'total_bytes' is 
assigned a value that is never used.
-lga_mds.c    937   unreadVariable       style        Variable 'total_bytes' is 
assigned a value that is never used.
-lga_mds.c    1146  unreadVariable       style        Variable 'rc' is assigned 
a value that is never used.
-lga_state.c  416   redundantAssignment  performance  Variable 'ncs_rc' is 
reassigned a value before the old one has been used.
-lgs_amf.cc       132   redundantAssignment        performance  Variable 
'ais_rc' is reassigned a value before the old one has been used.
-lgs_amf.cc       132   redundantAssignment        performance  Variable 
'ais_rc' is reassigned a value before the old one has been used.
-lgs_amf.cc       164   redundantAssignment        performance  Variable 'rc' 
is reassigned a value before the old one has been used.
-lgs_amf.cc       164   redundantAssignment        performance  Variable 'rc' 
is reassigned a value before the old one has been used.
-lgs_config.cc    799   redundantAssignment        performance  Variable 
'om_rc' is reassigned a value before the old one has been used.
-lgs_config.cc    799   redundantAssignment        performance  Variable 
'om_rc' is reassigned a value before the old one has been used.
-lgs_config.cc    1404  redundantAssignment        performance  Variable 'rc' 
is reassigned a value before the old one has been used.
-lgs_config.cc    1404  redundantAssignment        performance  Variable 'rc' 
is reassigned a value before the old one has been used.
-lgs_config.cc    446   unreachableCode            style        Statements 
following return, break, continue, goto or throw will never be executed.
-lgs_config.cc    166   useInitializationList      performance  Variable 
'logRootDirectory' is assigned in constructor body. Consider performing 
initialization in initialization list.
-lgs_filehdl.cc   546   unreadVariable             style        Variable 'len' 
is assigned a value that is never used.
-lgs_imm.cc       2985  redundantAssignment        performance  Variable 'rc' 
is reassigned a value before the old one has been used.
-lgs_imm.cc       2985  redundantAssignment        performance  Variable 'rc' 
is reassigned a value before the old one has been used.
-lgs_imm.cc       3010  redundantAssignment        performance  Variable 'rc' 
is reassigned a value before the old one has been used.
-lgs_imm.cc       3010  redundantAssignment        performance  Variable 'rc' 
is reassigned a value before the old one has been used.
-lgs_imm.cc       3098  redundantAssignment        performance  Variable 
'ais_rc' is reassigned a value before the old one has been used.
-lgs_imm.cc       3098  redundantAssignment        performance  Variable 
'ais_rc' is reassigned a value before the old one has been used.
-lgs_imm.cc       3363  redundantAssignment        performance  Variable 
'ais_rc' is reassigned a value before the old one has been used.
-lgs_imm.cc       3363  redundantAssignment        performance  Variable 
'ais_rc' is reassigned a value before the old one has been used.
-lgs_imm.cc       3412  redundantAssignment        performance  Variable 
'ais_rc' is reassigned a value before the old one has been used.
-lgs_imm.cc       3412  redundantAssignment        performance  Variable 
'ais_rc' is reassigned a value before the old one has been used.
-lgs_imm.cc       2969  unreachableCode            style        Statements 
following return, break, continue, goto or throw will never be executed.
-lgs_imm_gcfg.cc  610   redundantAssignment        performance  Variable 
'ais_rc' is reassigned a value before the old one has been used.
-lgs_imm_gcfg.cc  610   redundantAssignment        performance  Variable 
'ais_rc' is reassigned a value before the old one has been used.
-lgs_imm_gcfg.cc  874   redundantAssignment        performance  Variable 'rc' 
is reassigned a value before the old one has been used.
-lgs_imm_gcfg.cc  874   redundantAssignment        performance  Variable 'rc' 
is reassigned a value before the old one has been used.
-lgs_imm_gcfg.cc  851   uselessAssignmentPtrArg    warning      Assignment of 
function parameter has no effect outside the function.
-lgs_main.cc      323   clarifyCondition           style        Suspicious 
condition (assignment + comparison); Clarify expression with parentheses.
-lgs_mbcsv.cc     551   redundantAssignment        performance  Variable 'rc' 
is reassigned a value before the old one has been used.
-lgs_mbcsv.cc     551   redundantAssignment        performance  Variable 'rc' 
is reassigned a value before the old one has been used.
-lgs_mbcsv.cc     940   redundantAssignment        performance  Variable 'rc' 
is reassigned a value before the old one has been used.
-lgs_mbcsv.cc     940   redundantAssignment        performance  Variable 'rc' 
is reassigned a value before the old one has been used.
-lgs_mbcsv.cc     1151  redundantAssignment        performance  Variable 'rc' 
is reassigned a value before the old one has been used.
-lgs_mbcsv.cc     1151  redundantAssignment        performance  Variable 'rc' 
is reassigned a value before the old one has been used.
-lgs_mbcsv.cc     216   clarifyCondition           style        Suspicious 
condition (assignment + comparison); Clarify expression with parentheses.
-lgs_mds.cc       915   redundantAssignment        performance  Variable 'rc' 
is reassigned a value before the old one has been used.
-lgs_mds.cc       915   redundantAssignment        performance  Variable 'rc' 
is reassigned a value before the old one has been used.
-lgs_recov.cc     325   uselessAssignmentPtrArg    warning      Assignment of 
function parameter has no effect outside the function.
-saf_logger.c     161   invalidPrintfArgType_uint  warning      %u in format 
string (no. 1) requires an unsigned integer given in the argument list.
-saf_logger.c     166   invalidPrintfArgType_uint  warning      %u in format 
string (no. 1) requires an unsigned integer given in the argument list.
-saf_logger.c     455   memleak                    error        Memory leak: 
appLogFileCreateAttributes.logFileName
+File|Line|Id|Severity|Message
+---|---|---|---|---
+lga_mds.c|1240|redundantAssignment|performance|Variable 'rc' is reassigned a 
value before the old one has been used.
+lga_mds.c|692|unreadVariable|style|Variable 'total_bytes' is assigned a value 
that is never used.
+lga_mds.c|937|unreadVariable|style|Variable 'total_bytes' is assigned a value 
that is never used.
+lga_mds.c|1146|unreadVariable|style|Variable 'rc' is assigned a value that is 
never used.
+lga_state.c|416|redundantAssignment|performance|Variable 'ncs_rc' is 
reassigned a value before the old one has been used.
+lgs_amf.cc|132|redundantAssignment|performance|Variable 'ais_rc' is reassigned 
a value before the old one has been used.
+lgs_amf.cc|132|redundantAssignment|performance|Variable 'ais_rc' is reassigned 
a value before the old one has been used.
+lgs_amf.cc|164|redundantAssignment|performance|Variable 'rc' is reassigned a 
value before the old one has been used.
+lgs_amf.cc|164|redundantAssignment|performance|Variable 'rc' is reassigned a 
value before the old one has been used.
+lgs_config.cc|799|redundantAssignment|performance|Variable 'om_rc' is 
reassigned a value before the old one has been used.
+lgs_config.cc|799|redundantAssignment|performance|Variable 'om_rc' is 
reassigned a value before the old one has been used.
+lgs_config.cc|1404|redundantAssignment|performance|Variable 'rc' is reassigned 
a value before the old one has been used.
+lgs_config.cc|1404|redundantAssignment|performance|Variable 'rc' is reassigned 
a value before the old one has been used.
+lgs_config.cc|446|unreachableCode|style|Statements following return, break, 
continue, goto or throw will never be executed.
+lgs_filehdl.cc|546|unreadVariable|style|Variable 'len' is assigned a value 
that is never used.
+lgs_fmt.cc|818|unreadVariable|style|Variable 'stringSize' is assigned a value 
that is never used.
+lgs_imm.cc|2985|redundantAssignment|performance|Variable 'rc' is reassigned a 
value before the old one has been used.
+lgs_imm.cc|2985|redundantAssignment|performance|Variable 'rc' is reassigned a 
value before the old one has been used.
+lgs_imm.cc|3010|redundantAssignment|performance|Variable 'rc' is reassigned a 
value before the old one has been used.
+lgs_imm.cc|3010|redundantAssignment|performance|Variable 'rc' is reassigned a 
value before the old one has been used.
+lgs_imm.cc|3098|redundantAssignment|performance|Variable 'ais_rc' is 
reassigned a value before the old one has been used.
+lgs_imm.cc|3098|redundantAssignment|performance|Variable 'ais_rc' is 
reassigned a value before the old one has been used.
+lgs_imm.cc|3363|redundantAssignment|performance|Variable 'ais_rc' is 
reassigned a value before the old one has been used.
+lgs_imm.cc|3363|redundantAssignment|performance|Variable 'ais_rc' is 
reassigned a value before the old one has been used.
+lgs_imm.cc|3412|redundantAssignment|performance|Variable 'ais_rc' is 
reassigned a value before the old one has been used.
+lgs_imm.cc|3412|redundantAssignment|performance|Variable 'ais_rc' is 
reassigned a value before the old one has been used.
+lgs_imm.cc|2969|unreachableCode|style|Statements following return, break, 
continue, goto or throw will never be executed.
+lgs_imm_gcfg.cc|610|redundantAssignment|performance|Variable 'ais_rc' is 
reassigned a value before the old one has been used.
+lgs_imm_gcfg.cc|610|redundantAssignment|performance|Variable 'ais_rc' is 
reassigned a value before the old one has been used.
+lgs_imm_gcfg.cc|874|redundantAssignment|performance|Variable 'rc' is 
reassigned a value before the old one has been used.
+lgs_imm_gcfg.cc|874|redundantAssignment|performance|Variable 'rc' is 
reassigned a value before the old one has been used.
+lgs_imm_gcfg.cc|851|uselessAssignmentPtrArg|warning|Assignment of function 
parameter has no effect outside the function.
+lgs_main.cc|323|clarifyCondition|style|Suspicious condition (assignment + 
comparison); Clarify expression with parentheses.
+lgs_mbcsv.cc|551|redundantAssignment|performance|Variable 'rc' is reassigned a 
value before the old one has been used.
+lgs_mbcsv.cc|551|redundantAssignment|performance|Variable 'rc' is reassigned a 
value before the old one has been used.
+lgs_mbcsv.cc|940|redundantAssignment|performance|Variable 'rc' is reassigned a 
value before the old one has been used.
+lgs_mbcsv.cc|940|redundantAssignment|performance|Variable 'rc' is reassigned a 
value before the old one has been used.
+lgs_mbcsv.cc|1151|redundantAssignment|performance|Variable 'rc' is reassigned 
a value before the old one has been used.
+lgs_mbcsv.cc|1151|redundantAssignment|performance|Variable 'rc' is reassigned 
a value before the old one has been used.
+lgs_mbcsv.cc|216|clarifyCondition|style|Suspicious condition (assignment + 
comparison); Clarify expression with parentheses.
+lgs_mds.cc|915|redundantAssignment|performance|Variable 'rc' is reassigned a 
value before the old one has been used.
+lgs_mds.cc|915|redundantAssignment|performance|Variable 'rc' is reassigned a 
value before the old one has been used.
+lgs_stream.cc|428|uselessAssignmentPtrArg|warning|Assignment of function 
parameter has no effect outside the function.
+saf_logger.c|161|invalidPrintfArgType_uint|warning|%u in format string (no. 1) 
requires an unsigned integer given in the argument list.
+saf_logger.c|166|invalidPrintfArgType_uint|warning|%u in format string (no. 1) 
requires an unsigned integer given in the argument list.
+saf_logger.c|455|memleak|error|Memory leak: 
appLogFileCreateAttributes.logFileName

~~~~

- **status**: unassigned --> assigned
- **assigned_to**: Canh Truong



---

** [tickets:#1880] log: fix cppcheck warnings**

**Status:** assigned
**Milestone:** 5.1.FC
**Created:** Wed Jun 15, 2016 10:25 AM UTC by Canh Truong
**Last Updated:** Wed Jun 15, 2016 10:25 AM UTC
**Owner:** Canh Truong


File|Line|Id|Severity|Message
---|---|---|---|---
lga_mds.c|1240|redundantAssignment|performance|Variable 'rc' is reassigned a 
value before the old one has been used.
lga_mds.c|692|unreadVariable|style|Variable 'total_bytes' is assigned a value 
that is never used.
lga_mds.c|937|unreadVariable|style|Variable 'total_bytes' is assigned a value 
that is never used.
lga_mds.c|1146|unreadVariable|style|Variable 'rc' is assigned a value that is 
never used.
lga_state.c|416|redundantAssignment|performance|Variable 'ncs_rc' is reassigned 
a value before the old one has been used.
lgs_amf.cc|132|redundantAssignment|performance|Variable 'ais_rc' is reassigned 
a value before the old one has been used.
lgs_amf.cc|132|redundantAssignment|performance|Variable 'ais_rc' is reassigned 
a value before the old one has been used.
lgs_amf.cc|164|redundantAssignment|performance|Variable 'rc' is reassigned a 
value before the old one has been used.
lgs_amf.cc|164|redundantAssignment|performance|Variable 'rc' is reassigned a 
value before the old one has been used.
lgs_config.cc|799|redundantAssignment|performance|Variable 'om_rc' is 
reassigned a value before the old one has been used.
lgs_config.cc|799|redundantAssignment|performance|Variable 'om_rc' is 
reassigned a value before the old one has been used.
lgs_config.cc|1404|redundantAssignment|performance|Variable 'rc' is reassigned 
a value before the old one has been used.
lgs_config.cc|1404|redundantAssignment|performance|Variable 'rc' is reassigned 
a value before the old one has been used.
lgs_config.cc|446|unreachableCode|style|Statements following return, break, 
continue, goto or throw will never be executed.
lgs_filehdl.cc|546|unreadVariable|style|Variable 'len' is assigned a value that 
is never used.
lgs_fmt.cc|818|unreadVariable|style|Variable 'stringSize' is assigned a value 
that is never used.
lgs_imm.cc|2985|redundantAssignment|performance|Variable 'rc' is reassigned a 
value before the old one has been used.
lgs_imm.cc|2985|redundantAssignment|performance|Variable 'rc' is reassigned a 
value before the old one has been used.
lgs_imm.cc|3010|redundantAssignment|performance|Variable 'rc' is reassigned a 
value before the old one has been used.
lgs_imm.cc|3010|redundantAssignment|performance|Variable 'rc' is reassigned a 
value before the old one has been used.
lgs_imm.cc|3098|redundantAssignment|performance|Variable 'ais_rc' is reassigned 
a value before the old one has been used.
lgs_imm.cc|3098|redundantAssignment|performance|Variable 'ais_rc' is reassigned 
a value before the old one has been used.
lgs_imm.cc|3363|redundantAssignment|performance|Variable 'ais_rc' is reassigned 
a value before the old one has been used.
lgs_imm.cc|3363|redundantAssignment|performance|Variable 'ais_rc' is reassigned 
a value before the old one has been used.
lgs_imm.cc|3412|redundantAssignment|performance|Variable 'ais_rc' is reassigned 
a value before the old one has been used.
lgs_imm.cc|3412|redundantAssignment|performance|Variable 'ais_rc' is reassigned 
a value before the old one has been used.
lgs_imm.cc|2969|unreachableCode|style|Statements following return, break, 
continue, goto or throw will never be executed.
lgs_imm_gcfg.cc|610|redundantAssignment|performance|Variable 'ais_rc' is 
reassigned a value before the old one has been used.
lgs_imm_gcfg.cc|610|redundantAssignment|performance|Variable 'ais_rc' is 
reassigned a value before the old one has been used.
lgs_imm_gcfg.cc|874|redundantAssignment|performance|Variable 'rc' is reassigned 
a value before the old one has been used.
lgs_imm_gcfg.cc|874|redundantAssignment|performance|Variable 'rc' is reassigned 
a value before the old one has been used.
lgs_imm_gcfg.cc|851|uselessAssignmentPtrArg|warning|Assignment of function 
parameter has no effect outside the function.
lgs_main.cc|323|clarifyCondition|style|Suspicious condition (assignment + 
comparison); Clarify expression with parentheses.
lgs_mbcsv.cc|551|redundantAssignment|performance|Variable 'rc' is reassigned a 
value before the old one has been used.
lgs_mbcsv.cc|551|redundantAssignment|performance|Variable 'rc' is reassigned a 
value before the old one has been used.
lgs_mbcsv.cc|940|redundantAssignment|performance|Variable 'rc' is reassigned a 
value before the old one has been used.
lgs_mbcsv.cc|940|redundantAssignment|performance|Variable 'rc' is reassigned a 
value before the old one has been used.
lgs_mbcsv.cc|1151|redundantAssignment|performance|Variable 'rc' is reassigned a 
value before the old one has been used.
lgs_mbcsv.cc|1151|redundantAssignment|performance|Variable 'rc' is reassigned a 
value before the old one has been used.
lgs_mbcsv.cc|216|clarifyCondition|style|Suspicious condition (assignment + 
comparison); Clarify expression with parentheses.
lgs_mds.cc|915|redundantAssignment|performance|Variable 'rc' is reassigned a 
value before the old one has been used.
lgs_mds.cc|915|redundantAssignment|performance|Variable 'rc' is reassigned a 
value before the old one has been used.
lgs_stream.cc|428|uselessAssignmentPtrArg|warning|Assignment of function 
parameter has no effect outside the function.
saf_logger.c|161|invalidPrintfArgType_uint|warning|%u in format string (no. 1) 
requires an unsigned integer given in the argument list.
saf_logger.c|166|invalidPrintfArgType_uint|warning|%u in format string (no. 1) 
requires an unsigned integer given in the argument list.
saf_logger.c|455|memleak|error|Memory leak: 
appLogFileCreateAttributes.logFileName



---

Sent from sourceforge.net because [email protected] is 
subscribed to https://sourceforge.net/p/opensaf/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/opensaf/admin/tickets/options.  Or, if this is a 
mailing list, you can unsubscribe from the mailing list.
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity planning
reports. http://pubads.g.doubleclick.net/gampad/clk?id=1444514421&iu=/41014381
_______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to