]> git.droids-corp.org - protos/xbee.git/commitdiff
fix home directory master
authorFabrice Desclaux <serpilliere@droids-corp.org>
Wed, 19 Sep 2012 18:11:25 +0000 (20:11 +0200)
committerFabrice Desclaux <serpilliere@droids-corp.org>
Wed, 19 Sep 2012 18:11:25 +0000 (20:11 +0200)
main.c

diff --git a/main.c b/main.c
index fd658a0657d7ff6e1c66606be259859bfcb0aa51..e878a34e57d4305463869f62d48c497e5b093d61 100644 (file)
--- a/main.c
+++ b/main.c
@@ -852,7 +852,7 @@ int main(int argc, char **argv)
                if (access(xbeerc_path, R_OK) == 0) {
 
                        xbee_cl = cmdline_file_new(&main_ctx, "xbeerc> ",
                if (access(xbeerc_path, R_OK) == 0) {
 
                        xbee_cl = cmdline_file_new(&main_ctx, "xbeerc> ",
-                                             "/home/zer0/.xbeerc", 1);
+                                             xbeerc_path, 1);
                        if (xbee_cl != NULL) {
                                cmdline_interact(xbee_cl);
                                cmdline_free(xbee_cl);
                        if (xbee_cl != NULL) {
                                cmdline_interact(xbee_cl);
                                cmdline_free(xbee_cl);