Hello community,

here is the log from the commit of package libgtop for openSUSE:Factory checked 
in at 2017-06-12 15:09:17
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/libgtop (Old)
 and      /work/SRC/openSUSE:Factory/.libgtop.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "libgtop"

Mon Jun 12 15:09:17 2017 rev:56 rq:501758 version:2.36.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/libgtop/libgtop.changes  2017-03-22 
23:13:49.741611400 +0100
+++ /work/SRC/openSUSE:Factory/.libgtop.new/libgtop.changes     2017-06-12 
15:09:20.127885590 +0200
@@ -1,0 +2,7 @@
+Tue May 23 09:58:38 UTC 2017 - [email protected]
+
+- Add libgtop-add-NULL-pointer-checker.patch: Add NULL pointer
+  checker (bug found with scan-build). Patch from upstream stable
+  git branch.
+
+-------------------------------------------------------------------

New:
----
  libgtop-add-NULL-pointer-checker.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ libgtop.spec ++++++
--- /var/tmp/diff_new_pack.aTDKOx/_old  2017-06-12 15:09:20.827786788 +0200
+++ /var/tmp/diff_new_pack.aTDKOx/_new  2017-06-12 15:09:20.827786788 +0200
@@ -26,6 +26,8 @@
 Url:            https://developer.gnome.org/libgtop/stable/
 Source:         
http://download.gnome.org/sources/libgtop/2.36/%{name}-%{version}.tar.xz
 Source99:       baselibs.conf
+# PATCH-FIX-UPSTREAM libgtop-add-NULL-pointer-checker.patch 
[email protected] -- Add NULL pointer checker.
+Patch0:         libgtop-add-NULL-pointer-checker.patch
 BuildRequires:  glib2-devel
 BuildRequires:  gobject-introspection-devel
 %if !0%{?is_opensuse}
@@ -115,6 +117,7 @@
 translation-update-upstream po libgtop
 # rpmlint note: libgtop has a separate translation for both Bengali and 
Bengali India
 %endif
+%patch0 -p1
 
 %build
 %configure\

++++++ libgtop-add-NULL-pointer-checker.patch ++++++
>From e0f97e7dbd6ec87103705d3e114876d44cb0ca4c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Beno=C3=AEt=20Dejean?= <[email protected]>
Date: Mon, 1 May 2017 06:31:54 +0200
Subject: Add NULL pointer checker (bug found with scan-build).

---
 sysdeps/common/error.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sysdeps/common/error.c b/sysdeps/common/error.c
index 0502271..6ca947b 100644
--- a/sysdeps/common/error.c
+++ b/sysdeps/common/error.c
@@ -46,7 +46,7 @@ print_message (const glibtop *server, int message_level, 
const char *format, int
 
        g_string_printf(message, "%s", (server && server->name ? server->name : 
DEFAULT_NAME));
 
-       if (server->pid) {
+       if (server && server->pid) {
                g_string_append_printf(message, "(c=%u/s=%u)", getpid(), 
server->pid);
        }
        else {
-- 
cgit v0.12


Reply via email to