Fix two minor bugs on error paths. Version 20080625. - susmb - mounting of SMB/… | |
git clone git://git.codemadness.org/susmb | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 2d2b162d712d698357ae550c630545734f8543fb | |
parent fa2bdd0fdc97feb0d9e5b4f6c8132dba2bceec72 | |
Author: Geoff Johnstone <[email protected]> | |
Date: Wed, 25 Jun 2008 21:48:45 +0100 | |
Fix two minor bugs on error paths. | |
Version 20080625. | |
Diffstat: | |
M utils.c | 4 +++- | |
M version.h | 2 +- | |
2 files changed, 4 insertions(+), 2 deletions(-) | |
--- | |
diff --git a/utils.c b/utils.c | |
@@ -55,6 +55,7 @@ char * concat_strings (int num, ...) | |
if (dbl_len < buff_size) | |
{ | |
free (base); | |
+ va_end (ap); | |
return NULL; | |
} | |
@@ -68,6 +69,7 @@ char * concat_strings (int num, ...) | |
if (NULL == newbase) | |
{ | |
free (base); | |
+ va_end (ap); | |
return NULL; | |
} | |
@@ -89,7 +91,7 @@ char * xstrdup (const char *in) | |
{ | |
char *out = NULL; | |
- if (in) | |
+ if (NULL != in) | |
{ | |
size_t len = strlen (in) + 1; | |
diff --git a/version.h b/version.h | |
@@ -19,7 +19,7 @@ | |
#include <stdio.h> | |
- #define USMB_VERSION 0x20080530 | |
+ #define USMB_VERSION 0x20080625 | |
// a - alpha, b - beta, p - pre-release, s - stable | |
#define USMB_VERSION_STATUS 's' |