Fix bad error handling

GCC picked this up as a possible nullptr dereference.

Change-Id: Ia570175666a109ebea0ef835b75a907507580cbe
Signed-off-by: Ed Tanous <edtanous@google.com>
diff --git a/nbd-proxy.c b/nbd-proxy.c
index 83bada5..92dfb75 100644
--- a/nbd-proxy.c
+++ b/nbd-proxy.c
@@ -450,7 +450,7 @@
     int rc;
 
     ctx->udev = udev_new();
-    if (!ctx)
+    if (!ctx->udev)
     {
         warn("can't create udev object");
         return -1;