From: Xavier V. <xav...@fr...> - 2004-03-11 17:14:48
|
Hello Javi, hello list ! > I've created a MySQL section in lccd4linux.conf in order to get from there the server, login and password parameters to connect to MySQL. > The problem is wherever I use cfg_get() function I get "Segmentation fault" when running lcd4linux. > [...] > Any ideas? The problem may be in your variables. It will segfault it you use a plain variable and not a pointer. For example, I used for i2c_sensors : char *path_cfg=cfg_get(NULL, "i2c_sensors-path", ""); which would become for you : char *server=cfg_get("mysql", "server", ""); Bye ! -- Xavier VELLO <xav...@fr...> |