Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl2/xcvs/dist/src Don't fail if we don't have a cu...



details:   https://anonhg.NetBSD.org/src/rev/ac448b32de24
branches:  trunk
changeset: 781539:ac448b32de24
user:      christos <christos%NetBSD.org@localhost>
date:      Thu Sep 13 17:45:07 2012 +0000

description:
Don't fail if we don't have a current_parsed_root, makes:
        'echo version | cvs server'
work again.

diffstat:

 external/gpl2/xcvs/dist/src/server.c |  4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diffs (21 lines):

diff -r d93cb17c0c8d -r ac448b32de24 external/gpl2/xcvs/dist/src/server.c
--- a/external/gpl2/xcvs/dist/src/server.c      Thu Sep 13 13:59:33 2012 +0000
+++ b/external/gpl2/xcvs/dist/src/server.c      Thu Sep 13 17:45:07 2012 +0000
@@ -582,8 +582,6 @@
 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 @@
     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;
 



Home | Main Index | Thread Index | Old Index