summaryrefslogtreecommitdiffstats
path: root/src/analyze/analyze-compare-versions.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/analyze/analyze-compare-versions.c')
-rw-r--r--src/analyze/analyze-compare-versions.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/analyze/analyze-compare-versions.c b/src/analyze/analyze-compare-versions.c
index 9545326fa9..acc9bbfcf0 100644
--- a/src/analyze/analyze-compare-versions.c
+++ b/src/analyze/analyze-compare-versions.c
@@ -16,9 +16,9 @@ int verb_compare_versions(int argc, char *argv[], void *userdata) {
if (argc == 3) {
r = strverscmp_improved(ASSERT_PTR(argv[1]), ASSERT_PTR(argv[2]));
printf("%s %s %s\n",
- argv[1],
+ isempty(argv[1]) ? "''" : argv[1],
r < 0 ? "<" : r > 0 ? ">" : "==",
- argv[2]);
+ isempty(argv[2]) ? "''" : argv[2]);
/* This matches the exit convention used by rpmdev-vercmp.
* We don't use named values because 11 and 12 don't have names. */