]> arthur.barton.de Git - netatalk.git/blobdiff - libatalk/iniparser/dictionary.c
Remove CVS keywords
[netatalk.git] / libatalk / iniparser / dictionary.c
index 1848b45db15c036ada509e72ccbb1af74dd7875c..f1ff81567aefcccb8da5c45730a8256a40f49920 100644 (file)
@@ -3,7 +3,6 @@
    @file       dictionary.c
    @author     N. Devillard
    @date       Sep 2007
-   @version    $Revision: 1.27 $
    @brief      Implements a dictionary for string variables.
 
    This module implements a simple dictionary object, i.e. a list
 /*--------------------------------------------------------------------------*/
 
 /*
-       $Id: dictionary.c,v 1.27 2007-11-23 21:39:18 ndevilla Exp $
-       $Revision: 1.27 $
 */
 /*---------------------------------------------------------------------------
                                                                Includes
  ---------------------------------------------------------------------------*/
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif /* HAVE_CONFIG_H */
+
 #include <atalk/dictionary.h>
 #include <atalk/compat.h>
 
@@ -244,7 +245,7 @@ int dictionary_set(dictionary * d, char *section, char * key, char * val)
        int                     i ;
        unsigned        hash ;
 
-       if (d==NULL || key==NULL) return -1 ;
+       if (d==NULL || section==NULL) return -1 ;
        
        /* Compute hash for this key */
        hash = dictionary_hash(makekey(section, key));