From f214bb2115994cc6b4123f3d06db0452f17f2e99 Mon Sep 17 00:00:00 2001 From: james Date: Mon, 12 Dec 2005 19:46:10 +0000 Subject: Added --auto-proxy directive to auto-detect HTTP or SOCKS proxy settings (currently Windows only). git-svn-id: http://svn.openvpn.net/projects/openvpn/branches/BETA21/openvpn@850 e7ae566f-a301-0410-adde-c780ea21d3b5 --- buffer.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'buffer.c') diff --git a/buffer.c b/buffer.c index 5ff6123..e66c6a4 100644 --- a/buffer.c +++ b/buffer.c @@ -620,6 +620,18 @@ buf_parse (struct buffer *buf, const int delim, char *line, const int size) return !(eol && !strlen (line)); } +/* + * Print a string which might be NULL + */ +const char * +np (const char *str) +{ + if (str) + return str; + else + return "[NULL]"; +} + /* * Classify and mutate strings based on character types. */ -- cgit