chiark / gitweb /
Fixed assertion failure if user's home directory not accessible
[userv.git] / parser.c
index fbf0872a1ec2db564178d2905dc1fb73675b5e4d..e49b5ca6895b86e6a3782bf9cc9c5b78ff2e0226 100644 (file)
--- a/parser.c
+++ b/parser.c
@@ -173,6 +173,7 @@ static int dequote(char *inplace) {
     }
   }
   assert(*p); assert(!*++p);
+  *q++= 0;
   return tokv_quotedstring;
 }
 
@@ -838,8 +839,7 @@ int df_reset(int dtoken) {
 
   r= pa_mnl(); if (r) return r;
   r= parse_string(RESET_CONFIGURATION,"<builtin reset configuration>",1);
-  assert(!r);
-  return 0;  
+  return r;
 }
 
 int dfg_fdwant(int dtoken) {