]> code.delx.au - pulseaudio/blobdiff - polyp/scache.c
add support for automatic termination of the daemon after the last client quit
[pulseaudio] / polyp / scache.c
index b7a8ff026185df8180e368330e68bc32dfdb91f1..53e8a3fe286094aefe4505d2d3e66ab0a60f1d0b 100644 (file)
@@ -172,7 +172,7 @@ uint32_t pa_scache_get_id_by_name(struct pa_core *c, const char *name) {
 uint32_t pa_scache_total_size(struct pa_core *c) {
     struct pa_scache_entry *e;
     uint32_t index;
-    uint32_t sum;
+    uint32_t sum = 0;
 
     if (!c->scache)
         return 0;