]> git.meshlink.io Git - catta/commitdiff
### BACKPORT ###
authorLennart Poettering <lennart@poettering.net>
Tue, 11 Oct 2005 01:15:39 +0000 (01:15 +0000)
committerLennart Poettering <lennart@poettering.net>
Tue, 11 Oct 2005 01:15:39 +0000 (01:15 +0000)
fix uninitialized memory access

git-svn-id: file:///home/lennart/svn/public/avahi/trunk@718 941a03a8-eaeb-0310-b9a0-b1bbd8fe43fe

examples/core-browse-services.c

index c2eb180733fb04924e3bd1a306f964a0dbf5f0d8..d2a5e98b2bdf29e4f829ccca1e00a1259820c290 100644 (file)
@@ -155,7 +155,7 @@ static void browse_callback(
 
 int main(int argc, char*argv[]) {
     AvahiServerConfig config;
-    AvahiSServiceBrowser *sb;
+    AvahiSServiceBrowser *sb = NULL;
     int error;
     int ret = 1;