Sophie

Sophie

distrib > * > 2008.0 > x86_64 > by-pkgid > be99f46d8c1e7281140030b723a65484 > files > 1

vdr-plugin-autosort-0.1.3-2mdv2008.0.src.rpm

#! /bin/sh /usr/share/dpatch/dpatch-run
## 90_ConfigDir.dpatch by Thomas Günther <tom@toms-cafe.de>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Fixes initialization fo ConfigDir.

@DPATCH@
--- autosort-0.1.3/autosort.c
+++ autosort-0.1.3/autosort.c
@@ -81,6 +81,7 @@
 bool cPluginAutoSort::Start(void)
 {
   // Start any background activities the plugin shall perform.
+  ConfigDir = strdup(cPlugin::ConfigDirectory());
   cAutoSortMainThread::Init();
   return true;
 }
--- autosort-0.1.3/autosort_menu.c
+++ autosort-0.1.3/autosort_menu.c
@@ -35,7 +35,7 @@
 int averageDuration = 0;
 int activeChannel = 0;
 
-const char *ConfigDir =  cPlugin::ConfigDirectory();
+const char *ConfigDir = NULL;