seaspidery
authorChristian Grothoff <christian@grothoff.org>
Mon, 8 Nov 2010 15:02:34 +0000 (15:02 +0000)
committerChristian Grothoff <christian@grothoff.org>
Mon, 8 Nov 2010 15:02:34 +0000 (15:02 +0000)
src/datastore/plugin_datastore_sqlite.c

index 8169d1e26a078d4b752902728c4f23e4e16ed361..457f75c456271dcee61f22782bfb2a482d11e3c9 100644 (file)
@@ -234,13 +234,13 @@ database_setup (const struct GNUNET_CONFIGURATION_Handle *cfg,
       /* database is new or got deleted, reset payload to zero! */
       plugin->env->duc (plugin->env->cls, 0);
     }
-  plugin->fn = GNUNET_STRINGS_to_utf8 (afsdir, strlen (afsdir),
 #ifdef ENABLE_NLS
-                                             nl_langinfo (CODESET)
+  plugin->fn = GNUNET_STRINGS_to_utf8 (afsdir, strlen (afsdir),
+                                      nl_langinfo (CODESET));
 #else
-                                             "UTF-8"   /* good luck */
+  plugin->fn = GNUNET_STRINGS_to_utf8 (afsdir, strlen (afsdir),
+                                      "UTF-8");   /* good luck */
 #endif
-                                             );
   GNUNET_free (afsdir);
   
   /* Open database and precompile statements */