Invent unique pointer values properly
authorRémi Denis-Courmont <rdenis@simphalempin.com>
Sun, 12 Oct 2008 16:43:31 +0000 (19:43 +0300)
committerRémi Denis-Courmont <rdenis@simphalempin.com>
Sun, 12 Oct 2008 16:43:31 +0000 (19:43 +0300)
src/misc/messages.c

index f3306f2..ba93614 100644 (file)
@@ -133,8 +133,8 @@ void msg_Flush (libvlc_int_t *p_libvlc)
 /**
  * Object Printing selection
  */
-static void const * kObjectPrintingEnabled = (void *) 1;
-static void const * kObjectPrintingDisabled = (void *) -1;
+static void const * kObjectPrintingEnabled = &kObjectPrintingEnabled;
+static void const * kObjectPrintingDisabled = &kObjectPrintingDisabled;
 
 void __msg_EnableObjectPrinting (vlc_object_t *p_this, char * psz_object)
 {