Bug 94937

Summary: Variable "cc" is used before its value is set
Product: [Applications] kontact Reporter: Marcin Garski <mgarski>
Component: calendarAssignee: kdepim bugs <kdepim-bugs>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Linux   
Latest Commit: Version Fixed In:

Description Marcin Garski 2004-12-11 18:26:28 UTC
Version:            (using KDE Devel)
Installed from:    Compiled sources

File kdepim/libkcal/libical/src/libical/sspm.c contain *decode_base64 function.

There is variable "int cc", that is used before its value is set in while statement:

while (*src && p<(int)*size && (cc!=  -1)) {
Comment 1 Tobias Koenig 2005-02-16 23:50:41 UTC
CVS commit by tokoe: 

Initialize variable with 0, thanks for the hint.

BUGS:94937


  M +2 -2      sspm.c   1.8


--- kdepim/libkcal/libical/src/libical/sspm.c  #1.7:1.8
@@ -1165,5 +1165,5 @@ char *decode_base64(char *dest, 
                              size_t *size)
 {
-    int cc;
+    int cc = 0;
     char buf[4] = {0,0,0,0};  
     int p = 0;