gnash-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Gnash-commit] [SCM] Gnash branch, master, updated. release_0_8_9_final-


From: Bastiaan Jacques
Subject: [Gnash-commit] [SCM] Gnash branch, master, updated. release_0_8_9_final-1952-g5933b6f
Date: Fri, 25 Apr 2014 20:07:37 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnash".

The branch, master has been updated
       via  5933b6f014f7c5af3e0282271be291fe817ad9d9 (commit)
      from  ec68ce333f6b23eacdef95e4d7beea8bbf6e1f49 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit//commit/?id=5933b6f014f7c5af3e0282271be291fe817ad9d9


commit 5933b6f014f7c5af3e0282271be291fe817ad9d9
Author: Bastiaan Jacques <address@hidden>
Date:   Fri Apr 25 22:06:46 2014 +0200

    Zero-initialize, rather than memset-zero, some more objects.

diff --git a/libcore/asobj/flash/external/ExternalInterface_as.cpp 
b/libcore/asobj/flash/external/ExternalInterface_as.cpp
index 86530e6..c102ea8 100644
--- a/libcore/asobj/flash/external/ExternalInterface_as.cpp
+++ b/libcore/asobj/flash/external/ExternalInterface_as.cpp
@@ -320,8 +320,7 @@ externalinterface_available(const fn_call& fn)
       {
           const RunResources& r = m.runResources();
           const std::string& baseurl = r.streamProvider().baseURL().str();
-          char hostname[MAXHOSTNAMELEN];
-          std::memset(hostname, 0, MAXHOSTNAMELEN);
+          char hostname[MAXHOSTNAMELEN] = {};
           
           if (::gethostname(hostname, MAXHOSTNAMELEN) != 0) {
               mode = false;
diff --git a/libdevice/events/UinputDevice.cpp 
b/libdevice/events/UinputDevice.cpp
index 7459ece..c78df71 100644
--- a/libdevice/events/UinputDevice.cpp
+++ b/libdevice/events/UinputDevice.cpp
@@ -119,9 +119,8 @@ UinputDevice::init()
     }
 #else
 #if 1 // USE_ABSOLUTE_POINTER
-    struct uinput_user_dev uidev;
+    uinput_user_dev uidev = uinput_user_dev();
 
-    memset(&uidev, 0, sizeof(uidev));
     snprintf(uidev.name, UINPUT_MAX_NAME_SIZE, "uinput");
     uidev.id.bustype = BUS_USB;
     // uidev.id.vendor  = 0x1;
@@ -192,9 +191,8 @@ UinputDevice::moveTo(int x, int y)
 {
     // GNASH_REPORT_FUNCTION;
 
-    struct input_event ev;
+    input_event ev = input_event();
     
-    memset(&ev, 0, sizeof(ev));
     gettimeofday(&ev.time, NULL);
     ev.type = EV_ABS;
     ev.code = ABS_X;
diff --git a/libdevice/vaapi/VaapiImage.cpp b/libdevice/vaapi/VaapiImage.cpp
index d4a6a17..1d2f0fd 100644
--- a/libdevice/vaapi/VaapiImage.cpp
+++ b/libdevice/vaapi/VaapiImage.cpp
@@ -33,11 +33,11 @@ VaapiImage::VaapiImage(unsigned int     width,
                        unsigned int     height,
                        VaapiImageFormat format)
     : _format(format)
+    , _image()
     , _image_data(NULL)
 {
     log_debug(_("VaapiImage::VaapiImage(): format '%s'\n"), 
string_of_FOURCC(format));
 
-    memset(&_image, 0, sizeof(_image));
     _image.image_id = VA_INVALID_ID;
 
     if (!create(width, height)) {
diff --git a/libmedia/ffmpeg/MediaParserFfmpeg.cpp 
b/libmedia/ffmpeg/MediaParserFfmpeg.cpp
index a90eef9..ee92988 100644
--- a/libmedia/ffmpeg/MediaParserFfmpeg.cpp
+++ b/libmedia/ffmpeg/MediaParserFfmpeg.cpp
@@ -399,8 +399,7 @@ MediaParserFfmpeg::initializeParser()
 
 #if LIBAVFORMAT_VERSION_INT < AV_VERSION_INT(52,107,0)
     // Otherwise av_open_input_stream will reallocate the context.
-    AVFormatParameters ap;
-    std::memset(&ap, 0, sizeof ap);
+    AVFormatParameters ap = AVFormatParameters();
     ap.prealloced_context = 1;
 
     if (av_open_input_stream(&_formatCtx, &_byteIOCxt, "", _inputFmt, &ap) < 0)

-----------------------------------------------------------------------

Summary of changes:
 .../asobj/flash/external/ExternalInterface_as.cpp  |    3 +--
 libdevice/events/UinputDevice.cpp                  |    6 ++----
 libdevice/vaapi/VaapiImage.cpp                     |    2 +-
 libmedia/ffmpeg/MediaParserFfmpeg.cpp              |    3 +--
 4 files changed, 5 insertions(+), 9 deletions(-)


hooks/post-receive
-- 
Gnash



reply via email to

[Prev in Thread] Current Thread [Next in Thread]