Hello community,

here is the log from the commit of package blogc for openSUSE:Factory checked 
in at 2018-03-14 19:40:25
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/blogc (Old)
 and      /work/SRC/openSUSE:Factory/.blogc.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "blogc"

Wed Mar 14 19:40:25 2018 rev:3 rq:586695 version:0.13.3

Changes:
--------
--- /work/SRC/openSUSE:Factory/blogc/blogc.changes      2018-03-12 
12:13:33.499541155 +0100
+++ /work/SRC/openSUSE:Factory/.blogc.new/blogc.changes 2018-03-14 
19:40:46.541498311 +0100
@@ -1,0 +2,7 @@
+Wed Mar 14 08:53:33 UTC 2018 - [email protected]
+
+- Update to 0.13.3:
+  * Minor release with few bugfixes for bugs detected by 
+    clang-analyzer.
+
+-------------------------------------------------------------------

Old:
----
  blogc-0.13.2.tar.xz

New:
----
  blogc-0.13.3.tar.xz

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

Other differences:
------------------
++++++ blogc.spec ++++++
--- /var/tmp/diff_new_pack.Nfme2X/_old  2018-03-14 19:40:47.753455260 +0100
+++ /var/tmp/diff_new_pack.Nfme2X/_new  2018-03-14 19:40:47.757455118 +0100
@@ -17,7 +17,7 @@
 
 
 Name:           blogc
-Version:        0.13.2
+Version:        0.13.3
 Release:        0
 Summary:        Blog compiler
 License:        BSD-3-Clause

++++++ blogc-0.13.2.tar.xz -> blogc-0.13.3.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/blogc-0.13.2/.tarball-version 
new/blogc-0.13.3/.tarball-version
--- old/blogc-0.13.2/.tarball-version   2018-03-12 01:09:49.000000000 +0100
+++ new/blogc-0.13.3/.tarball-version   2018-03-14 02:29:06.000000000 +0100
@@ -1 +1 @@
-0.13.2
+0.13.3
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/blogc-0.13.2/.version new/blogc-0.13.3/.version
--- old/blogc-0.13.2/.version   2018-03-12 01:09:49.000000000 +0100
+++ new/blogc-0.13.3/.version   2018-03-14 02:29:06.000000000 +0100
@@ -1 +1 @@
-0.13.2
+0.13.3
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/blogc-0.13.2/blogc.spec new/blogc-0.13.3/blogc.spec
--- old/blogc-0.13.2/blogc.spec 2018-03-12 01:09:47.000000000 +0100
+++ new/blogc-0.13.3/blogc.spec 2018-03-14 02:29:04.000000000 +0100
@@ -1,11 +1,11 @@
 Name: blogc
-Version: 0.13.2
+Version: 0.13.3
 Release: 1%{?dist}
 License: BSD
 Group: Applications/Text
 Summary: A blog compiler
 URL: https://blogc.rgm.io/
-Source0: 
https://github.com/blogc/blogc/releases/download/v0.13.2/blogc-0.13.2.tar.xz
+Source0: 
https://github.com/blogc/blogc/releases/download/v0.13.3/blogc-0.13.3.tar.xz
 BuildRequires: libcmocka-devel, bash, coreutils, diffutils
 %if ! 0%{?el6}
 BuildRequires: git, tar, make
@@ -43,7 +43,7 @@
 blogc-runserver is a simple HTTP server to test blogc websites.
 
 %prep
-%setup -q -n blogc-0.13.2
+%setup -q -n blogc-0.13.3
 
 %build
 %if 0%{?el6}
@@ -88,6 +88,9 @@
 %license LICENSE
 
 %changelog
+* Wed Mar 14 2018 Rafael G. Martins <[email protected]> 0.13.3-1
+- New release.
+
 * Mon Mar 12 2018 Rafael G. Martins <[email protected]> 0.13.2-1
 - New release.
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/blogc-0.13.2/blogc.spec.in 
new/blogc-0.13.3/blogc.spec.in
--- old/blogc-0.13.2/blogc.spec.in      2018-03-12 01:09:06.000000000 +0100
+++ new/blogc-0.13.3/blogc.spec.in      2018-03-14 02:28:35.000000000 +0100
@@ -88,6 +88,9 @@
 %license LICENSE
 
 %changelog
+* Wed Mar 14 2018 Rafael G. Martins <[email protected]> 0.13.3-1
+- New release.
+
 * Mon Mar 12 2018 Rafael G. Martins <[email protected]> 0.13.2-1
 - New release.
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/blogc-0.13.2/configure new/blogc-0.13.3/configure
--- old/blogc-0.13.2/configure  2018-03-12 01:09:43.000000000 +0100
+++ new/blogc-0.13.3/configure  2018-03-14 02:28:59.000000000 +0100
@@ -1,6 +1,6 @@
 #! /bin/sh
 # Guess values for system-dependent variables and create Makefiles.
-# Generated by GNU Autoconf 2.69 for blogc 0.13.2.
+# Generated by GNU Autoconf 2.69 for blogc 0.13.3.
 #
 # Report bugs to <https://github.com/blogc/blogc>.
 #
@@ -590,8 +590,8 @@
 # Identity of this package.
 PACKAGE_NAME='blogc'
 PACKAGE_TARNAME='blogc'
-PACKAGE_VERSION='0.13.2'
-PACKAGE_STRING='blogc 0.13.2'
+PACKAGE_VERSION='0.13.3'
+PACKAGE_STRING='blogc 0.13.3'
 PACKAGE_BUGREPORT='https://github.com/blogc/blogc'
 PACKAGE_URL='https://blogc.rgm.io/'
 
@@ -1375,7 +1375,7 @@
   # Omit some internal or obsolete options to make the list less imposing.
   # This message is too long to be a string in the A/UX 3.1 sh.
   cat <<_ACEOF
-\`configure' configures blogc 0.13.2 to adapt to many kinds of systems.
+\`configure' configures blogc 0.13.3 to adapt to many kinds of systems.
 
 Usage: $0 [OPTION]... [VAR=VALUE]...
 
@@ -1445,7 +1445,7 @@
 
 if test -n "$ac_init_help"; then
   case $ac_init_help in
-     short | recursive ) echo "Configuration of blogc 0.13.2:";;
+     short | recursive ) echo "Configuration of blogc 0.13.3:";;
    esac
   cat <<\_ACEOF
 
@@ -1572,7 +1572,7 @@
 test -n "$ac_init_help" && exit $ac_status
 if $ac_init_version; then
   cat <<\_ACEOF
-blogc configure 0.13.2
+blogc configure 0.13.3
 generated by GNU Autoconf 2.69
 
 Copyright (C) 2012 Free Software Foundation, Inc.
@@ -1941,7 +1941,7 @@
 This file contains any messages produced by compilers while
 running configure, to aid debugging if configure makes a mistake.
 
-It was created by blogc $as_me 0.13.2, which was
+It was created by blogc $as_me 0.13.3, which was
 generated by GNU Autoconf 2.69.  Invocation command line was
 
   $ $0 $@
@@ -2806,7 +2806,7 @@
 
 # Define the identity of the package.
  PACKAGE='blogc'
- VERSION='0.13.2'
+ VERSION='0.13.3'
 
 
 cat >>confdefs.h <<_ACEOF
@@ -14934,7 +14934,7 @@
 # report actual input values of CONFIG_FILES etc. instead of their
 # values after options handling.
 ac_log="
-This file was extended by blogc $as_me 0.13.2, which was
+This file was extended by blogc $as_me 0.13.3, which was
 generated by GNU Autoconf 2.69.  Invocation command line was
 
   CONFIG_FILES    = $CONFIG_FILES
@@ -15001,7 +15001,7 @@
 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; 
s/[\\""\`\$]/\\\\&/g'`"
 ac_cs_version="\\
-blogc config.status 0.13.2
+blogc config.status 0.13.3
 configured by $0, generated by GNU Autoconf 2.69,
   with options \\"\$ac_cs_config\\"
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/blogc-0.13.2/src/blogc-make/ctx.c 
new/blogc-0.13.3/src/blogc-make/ctx.c
--- old/blogc-0.13.2/src/blogc-make/ctx.c       2018-03-12 01:09:06.000000000 
+0100
+++ new/blogc-0.13.3/src/blogc-make/ctx.c       2018-03-14 02:28:35.000000000 
+0100
@@ -270,20 +270,20 @@
 
 
 bool
-bm_ctx_reload(bm_ctx_t *ctx)
+bm_ctx_reload(bm_ctx_t **ctx)
 {
-    if (ctx == NULL || ctx->settings_fctx == NULL)
+    if (*ctx == NULL || (*ctx)->settings_fctx == NULL)
         return false;
 
-    if (bm_filectx_changed(ctx->settings_fctx, NULL, NULL)) {
+    if (bm_filectx_changed((*ctx)->settings_fctx, NULL, NULL)) {
         // reload everything! we could just reload settings_fctx, as this
         // would force rebuilding everything, but we need to know new/deleted
         // files
 
         // needs to dup path, because it may be freed when reloading.
-        char *tmp = bc_strdup(ctx->settings_fctx->path);
+        char *tmp = bc_strdup((*ctx)->settings_fctx->path);
         bc_error_t *err = NULL;
-        ctx = bm_ctx_new(ctx, tmp, NULL, &err);
+        *ctx = bm_ctx_new(*ctx, tmp, NULL, &err);
         free(tmp);
         if (err != NULL) {
             bc_error_print(err, "blogc-make");
@@ -293,16 +293,16 @@
         return true;
     }
 
-    bm_filectx_reload(ctx->main_template_fctx);
-    bm_filectx_reload(ctx->atom_template_fctx);
+    bm_filectx_reload((*ctx)->main_template_fctx);
+    bm_filectx_reload((*ctx)->atom_template_fctx);
 
-    for (bc_slist_t *tmp = ctx->posts_fctx; tmp != NULL; tmp = tmp->next)
+    for (bc_slist_t *tmp = (*ctx)->posts_fctx; tmp != NULL; tmp = tmp->next)
         bm_filectx_reload((bm_filectx_t*) tmp->data);
 
-    for (bc_slist_t *tmp = ctx->pages_fctx; tmp != NULL; tmp = tmp->next)
+    for (bc_slist_t *tmp = (*ctx)->pages_fctx; tmp != NULL; tmp = tmp->next)
         bm_filectx_reload((bm_filectx_t*) tmp->data);
 
-    for (bc_slist_t *tmp = ctx->copy_fctx; tmp != NULL; tmp = tmp->next)
+    for (bc_slist_t *tmp = (*ctx)->copy_fctx; tmp != NULL; tmp = tmp->next)
         bm_filectx_reload((bm_filectx_t*) tmp->data);
 
     return true;
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/blogc-0.13.2/src/blogc-make/ctx.h 
new/blogc-0.13.3/src/blogc-make/ctx.h
--- old/blogc-0.13.2/src/blogc-make/ctx.h       2018-03-12 01:09:06.000000000 
+0100
+++ new/blogc-0.13.3/src/blogc-make/ctx.h       2018-03-14 02:28:35.000000000 
+0100
@@ -73,7 +73,7 @@
 void bm_filectx_free(bm_filectx_t *fctx);
 bm_ctx_t* bm_ctx_new(bm_ctx_t *base, const char *settings_file,
     const char *argv0, bc_error_t **err);
-bool bm_ctx_reload(bm_ctx_t *ctx);
+bool bm_ctx_reload(bm_ctx_t **ctx);
 void bm_ctx_free_internal(bm_ctx_t *ctx);
 void bm_ctx_free(bm_ctx_t *ctx);
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/blogc-0.13.2/src/blogc-make/reloader.c 
new/blogc-0.13.3/src/blogc-make/reloader.c
--- old/blogc-0.13.2/src/blogc-make/reloader.c  2018-03-12 01:09:06.000000000 
+0100
+++ new/blogc-0.13.3/src/blogc-make/reloader.c  2018-03-14 02:28:35.000000000 
+0100
@@ -25,7 +25,7 @@
 {
     bm_reloader_t *reloader = arg;
     while (reloader->running) {
-        if (!bm_ctx_reload(reloader->ctx)) {
+        if (!bm_ctx_reload(&(reloader->ctx))) {
             fprintf(stderr, "blogc-make: warning: failed to reload context. "
                 "retrying in 5 seconds ...\n\n");
             sleep(5);
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/blogc-0.13.2/src/blogc-make/reloader.h 
new/blogc-0.13.3/src/blogc-make/reloader.h
--- old/blogc-0.13.2/src/blogc-make/reloader.h  2018-03-12 01:09:06.000000000 
+0100
+++ new/blogc-0.13.3/src/blogc-make/reloader.h  2018-03-14 02:28:35.000000000 
+0100
@@ -10,6 +10,7 @@
 #define _MAKE_RELOADER_H
 
 #include <stdbool.h>
+#include "../common/utils.h"
 #include "ctx.h"
 #include "rules.h"
 
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/blogc-0.13.2/src/blogc-runserver/httpd.c 
new/blogc-0.13.3/src/blogc-runserver/httpd.c
--- old/blogc-0.13.2/src/blogc-runserver/httpd.c        2018-03-12 
01:09:06.000000000 +0100
+++ new/blogc-0.13.3/src/blogc-runserver/httpd.c        2018-03-14 
02:28:35.000000000 +0100
@@ -277,6 +277,7 @@
     struct addrinfo *rp;
     int server_socket = 0;
 
+    int ai_family = 0;
     char *final_host = NULL;
     u_int16_t final_port = 0;
 
@@ -307,6 +308,7 @@
             continue;
         }
         if (0 == bind(server_socket, rp->ai_addr, rp->ai_addrlen)) {
+            ai_family = rp->ai_family;
             break;
         }
         else {
@@ -329,7 +331,7 @@
     }
 
     fprintf(stderr, " * Running on http://";);
-    if (rp->ai_family == AF_INET6)
+    if (ai_family == AF_INET6)
         fprintf(stderr, "[%s]", final_host);
     else
         fprintf(stderr, "%s", final_host);
@@ -339,7 +341,6 @@
         "\n"
         "WARNING!!! This is a development server, DO NOT RUN IT IN 
PRODUCTION!\n"
         "\n", max_threads);
-    free(final_host);
 
     size_t current_thread = 0;
 
@@ -350,7 +351,7 @@
         socklen_t addrlen;
         struct sockaddr *client_addr = NULL;
 
-        if (rp->ai_family == AF_INET6) {
+        if (ai_family == AF_INET6) {
             addrlen = sizeof(addr6);
             client_addr = (struct sockaddr*) &addr6;
         }
@@ -369,12 +370,14 @@
         request_data_t *arg = malloc(sizeof(request_data_t));
         arg->thread_id = current_thread;
         arg->socket = client_socket;
-        arg->ip = br_httpd_get_ip(rp->ai_family, client_addr);
+        arg->ip = br_httpd_get_ip(ai_family, client_addr);
         arg->docroot = docroot;
 
         if (threads[current_thread].initialized) {
             if (pthread_join(threads[current_thread].thread, NULL) != 0) {
                 fprintf(stderr, "Failed to join thread\n");
+                free(arg->ip);
+                free(arg);
                 rv = 3;
                 goto cleanup;
             }


Reply via email to