This patch initializes variables to prevent from having garbage values.
Coverity: 108757, 105091
Reference : https://review.tizen.org/gerrit/#/c/platform/framework/web/crosswalk-tizen/+/174876/
Change-Id: Ic50d6d5ca42da40019c43e281eec3f5b962ff640
Signed-off-by: deepti <d.saraswat@samsung.com>
class URLImpl {
public:
explicit URLImpl(const std::string& url);
- URLImpl() {}
+ URLImpl();
std::string url() const { return url_; }
std::string scheme() const { return scheme_; }
void ExtractPath();
};
+URLImpl::URLImpl() : port_(0) {
+}
+
URLImpl::URLImpl(const std::string& url) : port_(0) {
if (url.empty())
return;
SoftKeyboardChangeEventValue softkeyboard_value;
softkeyboard_value.state = "off";
+ softkeyboard_value.width = 0;
+ softkeyboard_value.height = 0;
self->listener_->OnSoftKeyboardChangeEvent(self->view_, softkeyboard_value);
};