From fe12ae4ee20e23943ff52bb71fd67da567e745d3 Mon Sep 17 00:00:00 2001 From: stan Date: Tue, 5 Apr 2011 20:54:10 +0000 Subject: [PATCH] Handle empty strings better. git-svn-id: http://svn.zoneminder.com/svn/zm/trunk@3311 e3e1d417-86f3-4887-817a-d78f3d33393f --- zmconfgen.pl.in | 1 + 1 file changed, 1 insertion(+) diff --git a/zmconfgen.pl.in b/zmconfgen.pl.in index 889753c95..4ffc6371e 100644 --- a/zmconfgen.pl.in +++ b/zmconfgen.pl.in @@ -184,6 +184,7 @@ sub generateConfigSQL sub addSlashes { my $string = shift; + return( "" ) unless $string; $string =~ s|(['"])|\\$1|g; return( $string ); }