]> arthur.barton.de Git - netatalk.git/commitdiff
creatvol() must return a struct vol pointer
authorRalph Boehme <sloowfranklin@gmail.com>
Tue, 27 Nov 2012 09:31:51 +0000 (10:31 +0100)
committerRalph Boehme <sloowfranklin@gmail.com>
Tue, 27 Nov 2012 09:31:51 +0000 (10:31 +0100)
libatalk/util/netatalk_conf.c

index ff2ccb7adc91b3c0478502df6f5f4cd8c33d701e..3e775e11a618601ed881ea776e337026fe721f65 100644 (file)
@@ -598,13 +598,13 @@ static struct vol *creatvol(AFPObj *obj,
              * we don't change options for volumes once they're loaded
              */
             vol->v_deleted = 0;
+            volume = vol;
             EC_EXIT_STATUS(0);
         }
         if (STRCMP(path, ==, vol->v_path)) {
             LOG(log_note, logtype_afpd, "volume \"%s\" path \"%s\" is the same as volumes \"%s\" path",
                 name, path, vol->v_configname);
             EC_EXIT_STATUS(0);
-
         }
         /*
          * We could check for nested volume paths here, but