]> arthur.barton.de Git - netatalk.git/commitdiff
Segfault fixes by Olaf Hering <olh@suse.de>.
authorsrittau <srittau>
Tue, 26 Jun 2001 23:54:59 +0000 (23:54 +0000)
committersrittau <srittau>
Tue, 26 Jun 2001 23:54:59 +0000 (23:54 +0000)
bin/afile/afile.c
bin/afile/common.c

index d6fce00347e52eeb3003495f4ebbe68dc1164a6e..72e5bd07ac464875ee6658c2f9ad56b6b0f6870b 100644 (file)
@@ -184,7 +184,6 @@ int handle_datafile(struct AFile *datafile)
   /* Try to load AppleDouble file. */
   adname = dataname_to_adname(afile_filename(datafile));
   rfile = afile_new(adname);
-  free(adname);
   if (!rfile) {
     if (errno == ENOENT) {
       free(adname);
index 305e10de2a03161af837d8ed08a3e910fe90f0cd..d0bea8eda537476a85e819e1ce2a9b5686662c7e 100644 (file)
@@ -202,5 +202,5 @@ const char *afile_creator(const struct AFile *afile)
 
 const char *afile_type(const struct AFile *afile)
 {
-  return afile->creator;
+  return afile->type;
 }