From: Justin Pettit Date: Mon, 5 May 2008 05:29:48 +0000 (-0700) Subject: Get rid of compiler warning under gcc 4.2. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0b22dde033db283834eff05b71ee567dd3a89e51;p=openvswitch Get rid of compiler warning under gcc 4.2. --- diff --git a/datapath/unit.c b/datapath/unit.c index 94a4439c..73aee7bd 100644 --- a/datapath/unit.c +++ b/datapath/unit.c @@ -72,7 +72,11 @@ static int run_test(const char *name, size_t len) int unit_init(void) { int n_pass = 0, n_fail = 0; - char *p = run ?: ""; + char *p = run; + + if (p == NULL) { + p = ""; + } for (;;) { static const char white_space[] = " \t\r\n\v,"; int len;