]> git.marmaro.de Git - mmh/blobdiff - sbr/context_replace.c
Don't fclose() the file twice in error-exit paths from get_content()
[mmh] / sbr / context_replace.c
index 541253db66309398b6591db84ebe7124ad184fc2..b723cb43118a65bf5f0c820b1739a9b8cf307ed7 100644 (file)
@@ -17,10 +17,6 @@ context_replace (char *key, char *value)
 {
     register struct node *np;
 
-    /* sanity check - check that context has been read */
-    if (defpath == NULL)
-       adios (NULL, "oops, context hasn't been read yet");
-
     /*
      * If list is emtpy, allocate head of profile/context list.
      */