[xiph-cvs] cvs commit: vorbis-tools/ogg123 ogg123.c

Stan Seibert volsung at xiph.org
Wed Oct 17 12:15:27 PDT 2001



volsung     01/10/17 12:15:27

  Modified:    ogg123   Tag: volsung_kc_20011011 ogg123.c
  Log:
  Thou shalt not dereference the NULL pointer.

Revision  Changes    Path
No                   revision

No                   revision

1.39.2.30.2.4 +2 -2      vorbis-tools/ogg123/ogg123.c

Index: ogg123.c
===================================================================
RCS file: /usr/local/cvsroot/vorbis-tools/ogg123/ogg123.c,v
retrieving revision 1.39.2.30.2.3
retrieving revision 1.39.2.30.2.4
diff -u -r1.39.2.30.2.3 -r1.39.2.30.2.4
--- ogg123.c	2001/10/17 16:58:14	1.39.2.30.2.3
+++ ogg123.c	2001/10/17 19:15:26	1.39.2.30.2.4
@@ -14,7 +14,7 @@
  *                                                                  *
  ********************************************************************
 
- last mod: $Id: ogg123.c,v 1.39.2.30.2.3 2001/10/17 16:58:14 volsung Exp $
+ last mod: $Id: ogg123.c,v 1.39.2.30.2.4 2001/10/17 19:15:26 volsung Exp $
 
  ********************************************************************/
 
@@ -218,7 +218,7 @@
   Stat_t *stats = Options.statOpts.stats;
 
   memset (strbuf, 0, 80);
-  if (Options.inputOpts.data->buf) {
+  if (Options.inputOpts.data) {
     SetBufferStats (Options.inputOpts.data->buf, strbuf);
     stats[6].arg.doublearg = (double) buffer_full(Options.inputOpts.data->buf) / (double) Options.inputOpts.data->buf->size * 100.0f;
   }

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'cvs-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the commits mailing list