Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:12.2
mumble
0001-if-service-name-is-empty-don-t-pass-an-emp...
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0001-if-service-name-is-empty-don-t-pass-an-empty-string.diff of Package mumble
From d2a97b874e55ad156781a2762ff32ae9566de495 Mon Sep 17 00:00:00 2001 From: Ludwig Nussel <ludwig.nussel@suse.de> Date: Thu, 24 Mar 2011 09:04:53 +0100 Subject: [PATCH mumble] if service name is empty don't pass an empty string DNSServiceRegister uses the local host name if the name is NULL but does nothing if it's empty --- src/bonjour/bonjourserviceregister.cpp | 4 +++- 1 files changed, 3 insertions(+), 1 deletions(-) diff --git a/src/bonjour/bonjourserviceregister.cpp b/src/bonjour/bonjourserviceregister.cpp index a818d8c..5f82779 100644 --- a/src/bonjour/bonjourserviceregister.cpp +++ b/src/bonjour/bonjourserviceregister.cpp @@ -53,7 +53,9 @@ void BonjourServiceRegister::registerService(const BonjourRecord &record, quint1 } #endif - DNSServiceErrorType err = DNSServiceRegister(&dnssref, 0, 0, record.serviceName.toUtf8().constData(), + DNSServiceErrorType err = DNSServiceRegister(&dnssref, 0, 0, + record.serviceName.isEmpty() ? 0 + : record.serviceName.toUtf8().constData(), record.registeredType.toUtf8().constData(), record.replyDomain.isEmpty() ? 0 : record.replyDomain.toUtf8().constData(), 0, -- 1.7.3.4
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor