summaryrefslogtreecommitdiff
path: root/src/wcmConfig.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/wcmConfig.c')
-rw-r--r--src/wcmConfig.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/wcmConfig.c b/src/wcmConfig.c
index 8d04767..901c41c 100644
--- a/src/wcmConfig.c
+++ b/src/wcmConfig.c
@@ -739,7 +739,7 @@ int wcmPreInit(WacomDevicePtr priv)
common->debugLevel = wcmOptGetInt(priv,
"CommonDBG", common->debugLevel);
- oldname = strdup(pInfo->name);
+ oldname = strdup(priv->name);
if (wcmIsHotpluggedDevice(priv))
is_dependent = 1;
@@ -748,8 +748,8 @@ int wcmPreInit(WacomDevicePtr priv)
/* we need subdevices, change the name so all of them have a
type. */
char *new_name;
- if (asprintf(&new_name, "%s %s", pInfo->name, type) == -1)
- new_name = strdup(pInfo->name);
+ if (asprintf(&new_name, "%s %s", priv->name, type) == -1)
+ new_name = strdup(priv->name);
free(pInfo->name);
free(priv->name);
pInfo->name = new_name;