Skip to content
This repository has been archived by the owner on Jul 12, 2023. It is now read-only.
/ kms-core Public archive

Commit

Permalink
Fix some 'uninitialized use' warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
j1elo committed May 10, 2018
1 parent c735942 commit cc100ca
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
3 changes: 2 additions & 1 deletion src/gst-plugins/commons/sdpagent/kmssdpsctpmediahandler.c
Original file line number Diff line number Diff line change
Expand Up @@ -407,8 +407,9 @@ kms_sdp_sctp_media_handler_init_offer (KmsSdpMediaHandler * handler,

if (gst_sdp_media_add_attribute (offer, "setup", "actpass") != GST_SDP_OK) {
g_set_error_literal (error, KMS_SDP_AGENT_ERROR, SDP_AGENT_UNEXPECTED_ERROR,
"Can not to set attribute 'setup:actpass'");
"Can not set attribute 'setup:actpass'");
ret = FALSE;
goto end;
}

end:
Expand Down
2 changes: 1 addition & 1 deletion src/server/implementation/MediaSet.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ class MediaSet

std::recursive_mutex recMutex;
std::condition_variable_any waitCond;
std::atomic<bool> terminated;
std::atomic<bool> terminated{};

std::shared_ptr <ServerManagerImpl> serverManager;

Expand Down
2 changes: 1 addition & 1 deletion src/server/implementation/UUIDGenerator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class RandomGenerator
{
boost::uuids::basic_random_generator<boost::mt19937> gen;
boost::mt19937 ran;
pid_t pid;
pid_t pid{};

public:
RandomGenerator () : gen (&ran)
Expand Down
3 changes: 1 addition & 2 deletions src/server/implementation/objects/HubPortImpl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@ class HubPortImpl : public MediaElementImpl, public virtual HubPort
virtual void Serialize (JsonSerializer &serializer) override;

private:

int handlerId;
int handlerId{};

class StaticConstructor
{
Expand Down
2 changes: 1 addition & 1 deletion src/server/implementation/objects/MediaObjectImpl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ class MediaObjectImpl : public virtual MediaObject
} catch (KurentoException &e) {
GST_WARNING ("Posible error deserializing %s from config", key.c_str() );
} catch (std::exception &e) {
GST_WARNING ("Unknown error getting%s from config", key.c_str() );
GST_WARNING ("Unknown error getting '%s' from config", key.c_str() );
}

return defaultValue;
Expand Down
6 changes: 3 additions & 3 deletions src/server/implementation/objects/SdpEndpointImpl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,9 @@ class SdpEndpointImpl : public SessionEndpointImpl, public virtual SdpEndpoint
private:

static std::mutex sdpMutex;
std::atomic_bool offerInProcess;
std::atomic_bool waitingAnswer;
std::atomic_bool answerProcessed;
std::atomic_bool offerInProcess{};
std::atomic_bool waitingAnswer{};
std::atomic_bool answerProcessed{};

class StaticConstructor
{
Expand Down
2 changes: 1 addition & 1 deletion src/server/implementation/objects/UriEndpointImpl.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ class UriEndpointImpl : public EndpointImpl, public virtual UriEndpoint

std::string uri;
std::string absolute_uri;
gulong stateChangedHandlerId;
gulong stateChangedHandlerId{};
std::shared_ptr<UriEndpointState> state;

void checkUri ();
Expand Down

0 comments on commit cc100ca

Please sign in to comment.