Print this page
12326 hal: the value of *n_speeds should increase rather than the pointer

@@ -1,10 +1,10 @@
 /***************************************************************************
  *
  * cdutils.c : CD/DVD utilities
  *
- * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
+ * Copyright 2006, 2015, Oracle and/or its affiliates. All rights reserved.
  * Use is subject to license terms.
  *
  * Licensed under the Academic Free License version 2.1
  *
  **************************************************************************/

@@ -308,11 +308,11 @@
                         }
                 }
                 if (!skip) {
                         current->next = *nextp;
                         *nextp = current;
-                        *n_speeds++;
+                        (*n_speeds)++;
                 }
         }
 }
 
 void