Use better expression for asprintf.

This commit is contained in:
Andreas Schneider 2008-04-26 20:56:46 +02:00
parent e8b4f4c5e1
commit 2d8214aa31

View file

@ -43,7 +43,7 @@ int csync_vio_init(CSYNC *ctx, const char *module, const char *args) {
csync_vio_method_init_fn init_fn;
#if DEVELOPER
if (asprintf(&path, "%s/csync_%s.so", SYSCONFDIR "/modules", module) < 0) {
if (asprintf(&path, "%s/modules/csync_%s.so", SYSCONFDIR, module) < 0) {
#else
if (asprintf(&path, "%s/csync_%s.so", PLUGINDIR, module) < 0) {
#endif