forked from enlightenment/enlightenment
use -null- to avoid shell parsing stuff with (null)
SVN revision: 33549
This commit is contained in:
parent
103936c011
commit
1852c63c63
|
@ -95,7 +95,7 @@ _gc_init(E_Gadcon *gc, const char *name, const char *id, const char *style)
|
|||
"%s/%s/tempget %i \"%s\" %i",
|
||||
e_module_dir_get(temperature_config->module), MODULE_ARCH,
|
||||
inst->sensor_type,
|
||||
(inst->sensor_name != NULL ? inst->sensor_name : "(null)"),
|
||||
(inst->sensor_name != NULL ? inst->sensor_name : "-null-"),
|
||||
inst->poll_interval);
|
||||
inst->tempget_exe = ecore_exe_pipe_run(buf,
|
||||
ECORE_EXE_PIPE_READ |
|
||||
|
|
|
@ -385,7 +385,7 @@ main(int argc, char *argv[])
|
|||
}
|
||||
sensor_type = atoi(argv[1]);
|
||||
sensor_name = strdup(argv[2]);
|
||||
if (!strcmp(sensor_name, "(null)"))
|
||||
if (!strcmp(sensor_name, "-null-"))
|
||||
{
|
||||
free(sensor_name);
|
||||
sensor_name = NULL;
|
||||
|
|
Loading…
Reference in New Issue