aboutsummaryrefslogtreecommitdiffstats
path: root/src/wgt-info.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/wgt-info.c')
-rw-r--r--src/wgt-info.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/wgt-info.c b/src/wgt-info.c
index 3b7cb36..ade3830 100644
--- a/src/wgt-info.c
+++ b/src/wgt-info.c
@@ -102,6 +102,7 @@ static char *mkver(char *version)
static char *mkidaver(char *id, char *ver)
{
+#if DISTINCT_VERSIONS
size_t lid, lver;
char *r;
if (id && ver) {
@@ -117,6 +118,9 @@ static char *mkidaver(char *id, char *ver)
}
}
return NULL;
+#else
+ return strdup(id);
+#endif
}
static void make_lowercase(char *s)