only allow readConfigFiles() once
authorewt <devnull@localhost>
Thu, 22 Aug 1996 20:25:46 +0000 (20:25 +0000)
committerewt <devnull@localhost>
Thu, 22 Aug 1996 20:25:46 +0000 (20:25 +0000)
CVS patchset: 982
CVS date: 1996/08/22 20:25:46

lib/rpmrc.c

index 19f8fd1..d97ed44 100644 (file)
@@ -611,6 +611,11 @@ int rpmReadConfigFiles(char * file, char * arch, char * os, int building)
     int rc = 0;
     int tc;
     char *tcs, *tcse;
+    static int alreadyInit = 0;
+
+    if (alreadyInit)
+      return 1;
+    alreadyInit = 1;
     
     setDefaults();