Bug 94937 - Variable "cc" is used before its value is set
Summary: Variable "cc" is used before its value is set
Status: RESOLVED FIXED
Alias: None
Product: kontact
Classification: Applications
Component: calendar (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: kdepim bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-11 18:26 UTC by Marcin Garski
Modified: 2005-02-16 23:50 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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;