changeset 24032:144162149176

Fix likely mistake when using char*.
author cehoyos
date Mon, 13 Aug 2007 08:32:47 +0000
parents f063ae070088
children 8a21d114aa94
files libvo/vo_aa.c libvo/vo_caca.c
diffstat 2 files changed, 4 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/libvo/vo_aa.c	Mon Aug 13 08:30:53 2007 +0000
+++ b/libvo/vo_aa.c	Mon Aug 13 08:32:47 2007 +0000
@@ -393,12 +393,12 @@
       {
 	if (time(NULL)>=stoposd ) {
 	  showosdmessage=0;
-	  if(osdmessagetext) {
+	  if(*osdmessagetext) {
 	    memset(c->textbuffer + osdy * aa_scrwidth(c) + osdx,' ',strlen(osdmessagetext));
 	    memset(c->attrbuffer + osdy * aa_scrwidth(c) + osdx ,0,strlen(osdmessagetext));
 	    osdmessagetext[0] = '\0';
 	  }
-	  if(posbar) {
+	  if(*posbar) {
 	    memset(c->textbuffer + (osdy+1) * aa_scrwidth(c),' ',strlen(posbar));
 	    memset(c->attrbuffer + (osdy+1) * aa_scrwidth(c),0,strlen(posbar));
 	  }
--- a/libvo/vo_caca.c	Mon Aug 13 08:30:53 2007 +0000
+++ b/libvo/vo_caca.c	Mon Aug 13 08:32:47 2007 +0000
@@ -177,12 +177,12 @@
 	if (time(NULL) >= stoposd)
 	{
 	    showosdmessage = 0;
-	    if (posbar)
+	    if (*posbar)
 		posbar[0] = '\0';
 	} else {
 	    caca_putstr(osdx, osdy, osdmessagetext);
 	    
-	    if (posbar)
+	    if (*posbar)
 		caca_putstr(0, posbary, posbar);
 	}
     }