Author: tom
Date: Wed Nov  5 10:51:27 2008
New Revision: 3284

URL: http://svn.slimdevices.com?rev=3284&root=Jive&view=rev
Log:
Bug 9823:
Description: 
User settings now in <user home>/.squeezeplay/userpath/ . Will check for old 
setting location if new isn't found. This directory is included at the end of 
the lua path. - Move declaration to top

Modified:
    7.3/trunk/squeezeplay/src/squeezeplay/src/jive.c

Modified: 7.3/trunk/squeezeplay/src/squeezeplay/src/jive.c
URL: 
http://svn.slimdevices.com/7.3/trunk/squeezeplay/src/squeezeplay/src/jive.c?rev=3284&root=Jive&r1=3283&r2=3284&view=diff
==============================================================================
--- 7.3/trunk/squeezeplay/src/squeezeplay/src/jive.c (original)
+++ 7.3/trunk/squeezeplay/src/squeezeplay/src/jive.c Wed Nov  5 10:51:27 2008
@@ -168,7 +168,8 @@
 */
 static void paths_setup(lua_State *L, char *app) {
        char *temp, *binpath, *path, *userpath;
-
+       const char *home;
+       
        DEBUG_TRACE("Setting up paths");
 
        temp = malloc(PATH_MAX+1);
@@ -211,7 +212,7 @@
 
        DEBUG_TRACE("* Jive binary directory: %s", binpath);
 
-    const char *home = getenv("HOME");
+    home = getenv("HOME");
        if (home != NULL) {
                strcpy(userpath, home);
        } else{

_______________________________________________
Jive-checkins mailing list
[email protected]
http://lists.slimdevices.com/cgi-bin/mailman/listinfo/jive-checkins

Reply via email to