]> git.mxchange.org Git - flightgear.git/commitdiff
Ignore files that have -set.xml in them, but don't end in that exact string
authorcurt <curt>
Wed, 28 Aug 2002 17:53:52 +0000 (17:53 +0000)
committercurt <curt>
Wed, 28 Aug 2002 17:53:52 +0000 (17:53 +0000)
(i.e. something-set.xml~)

src/Main/options.cxx

index 8fc107c3713dfa88e4db82c79c742d516520832f..852426cbe4f95091097831ffe6fc1dae897653f6 100644 (file)
@@ -1273,7 +1273,7 @@ void fgShowAircraft(void) {
    while ((dire = ulReadDir(dirp)) != NULL) {
       char *ptr;
 
-      if ((ptr = strstr(dire->d_name, "-set.xml")) ) {
+      if ((ptr = strstr(dire->d_name, "-set.xml")) && ptr[8] == '\0' ) {
           SGPath afile = path;
           afile.append(dire->d_name);