logo

oasis

Own branch of Oasis Linux (upstream: <https://git.sr.ht/~mcf/oasis/>) git clone https://anongit.hacktivis.me/git/oasis.git

0005-Remove-use-of-conditional-operator-with-no-second-op.patch (631B)


  1. From 76e58adea4e85a0ac0db3339a8e7179378dc1b44 Mon Sep 17 00:00:00 2001
  2. From: Michael Forney <mforney@mforney.org>
  3. Date: Wed, 1 Apr 2026 22:09:15 -0700
  4. Subject: [PATCH] Remove use of conditional operator with no second operand
  5. ---
  6. src/ipc.c | 2 +-
  7. 1 file changed, 1 insertion(+), 1 deletion(-)
  8. diff --git a/src/ipc.c b/src/ipc.c
  9. index 1155bd5..d747553 100644
  10. --- a/src/ipc.c
  11. +++ b/src/ipc.c
  12. @@ -72,7 +72,7 @@ cleanup:
  13. free(list.buffer);
  14. return NULL;
  15. }
  16. - return list.buffer ?: strdup("\0");
  17. + return list.buffer ? list.buffer : strdup("\0");
  18. }
  19. int ipc_get_device(struct wgdevice **dev, const char *iface)
  20. --
  21. 2.49.0