diff options
-rw-r--r-- | src/wcmValidateDevice.c | 2 | ||||
-rw-r--r-- | test/wacom-tests.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/wcmValidateDevice.c b/src/wcmValidateDevice.c index cc0b807..eb94d92 100644 --- a/src/wcmValidateDevice.c +++ b/src/wcmValidateDevice.c @@ -716,7 +716,7 @@ int wcmParseSerials (InputInfoPtr pInfo) pInfo->name, serial, name); ser->name = strdup(name); } - else ser->name = ""; /*no name yet*/ + else ser->name = strdup(""); /*no name yet*/ if (common->serials == NULL) common->serials = ser; diff --git a/test/wacom-tests.c b/test/wacom-tests.c index 75f32b6..743bd2c 100644 --- a/test/wacom-tests.c +++ b/test/wacom-tests.c @@ -185,7 +185,7 @@ test_normalize_pressure(void) priv.common = &common; priv.pInfo = &pInfo; - pInfo.name = "Wacom test device"; + pInfo.name = strdupa("Wacom test device"); priv.minPressure = 0; |