[libbluray-devel] Use correct operator

hpi1 git at videolan.org
Mon Jan 25 12:49:57 CET 2016


libbluray | branch: master | hpi1 <hpi1 at anonymous.org> | Mon Jan 25 13:45:22 2016 +0200| [3e28138c66f885f47341196f0fe5fd646e8551ca] | committer: hpi1

Use correct operator

> http://git.videolan.org/gitweb.cgi/libbluray.git/?a=commit;h=3e28138c66f885f47341196f0fe5fd646e8551ca
---

 src/libbluray/bdnav/sound_parse.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/libbluray/bdnav/sound_parse.c b/src/libbluray/bdnav/sound_parse.c
index b5d11fd..7c267da 100644
--- a/src/libbluray/bdnav/sound_parse.c
+++ b/src/libbluray/bdnav/sound_parse.c
@@ -169,7 +169,7 @@ static SOUND_DATA *_sound_parse(BD_FILE_H *fp)
 
     data_offsets = calloc(num_sounds, sizeof(uint32_t));
     data = calloc(1, sizeof(SOUND_DATA));
-    if (!data_offsets | !data) {
+    if (!data_offsets || !data) {
         BD_DEBUG(DBG_CRIT, "out of memory\n");
         goto error;
     }



More information about the libbluray-devel mailing list