From 45d942e0306254cf519af89647b3ccb7616551ac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Caletka?= Date: Tue, 21 Jun 2016 21:42:31 +0200 Subject: [PATCH] Fix uninitalized hostname. --- configure.ac | 2 +- src/httpclients.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.ac b/configure.ac index 327f50a..0220fdf 100644 --- a/configure.ac +++ b/configure.ac @@ -2,7 +2,7 @@ # Process this file with autoconf to produce a configure script. AC_PREREQ([2.69]) -AC_INIT([rtp2httpd], [1.2], [ondrej@caletka.cz]) +AC_INIT([rtp2httpd], [1.3], [ondrej@caletka.cz]) AC_CONFIG_SRCDIR([src/rtp2httpd.h]) AC_CONFIG_HEADERS([src/config.h]) AM_INIT_AUTOMAKE diff --git a/src/httpclients.c b/src/httpclients.c index 9bf8c34..55cacc2 100644 --- a/src/httpclients.c +++ b/src/httpclients.c @@ -367,7 +367,7 @@ void clientService(int s) { FILE *client; int numfields; char *method, *url, httpver; - char *hostname; + char *hostname = ""; char *urlfrom; struct services_s *servi;