Module Name: src
Committed By: christos
Date: Thu Sep 13 17:45:07 UTC 2012
Modified Files:
src/external/gpl2/xcvs/dist/src: server.c
Log Message:
Don't fail if we don't have a current_parsed_root, makes:
'echo version | cvs server'
work again.
To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 src/external/gpl2/xcvs/dist/src/server.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/external/gpl2/xcvs/dist/src/server.c
diff -u src/external/gpl2/xcvs/dist/src/server.c:1.4 src/external/gpl2/xcvs/dist/src/server.c:1.5
--- src/external/gpl2/xcvs/dist/src/server.c:1.4 Thu Mar 8 15:41:48 2012
+++ src/external/gpl2/xcvs/dist/src/server.c Thu Sep 13 13:45:07 2012
@@ -582,8 +582,6 @@ supported_response (char *name)
static inline bool
isProxyServer (void)
{
- assert (current_parsed_root);
-
/***
*** The following is done as a series of if/return combinations an an
*** optimization.
@@ -595,7 +593,7 @@ isProxyServer (void)
if (!config || !config->PrimaryServer) return false;
/* The directory must not match for all methods. */
- if (!isSamePath (config->PrimaryServer->directory,
+ if (current_parsed_root && !isSamePath (config->PrimaryServer->directory,
current_parsed_root->directory))
return true;