xcmx/cmxColNm: Removed unused assignments to pBuf (in two functions)

Pointer "pBuf" returned from "fgets(buf, 256, stream)" is never used

Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Reviewed-by: Ander Conselvan de Oliveira <ander.conselvan-de-oliveira@nokia.com>
Signed-off-by: Erkki Seppälä <erkki.seppala@vincit.fi>
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
This commit is contained in:
Erkki Seppälä 2011-01-31 14:01:54 +02:00 committed by Alan Coopersmith
parent cc686655d7
commit d0266e06d3

View file

@ -567,7 +567,7 @@ stringSectionSize(
return(XcmsFailure);
}
while((pBuf = fgets(buf, XCMSDB_MAXLINELEN, stream)) != NULL) {
while((fgets(buf, XCMSDB_MAXLINELEN, stream)) != NULL) {
if ((sscanf(buf, "%s", token)) && (strcmp(token, END_TOKEN) == 0)) {
break;
}
@ -651,7 +651,7 @@ ReadColornameDB(
* Process lines between START_TOKEN to END_TOKEN
*/
while ((pBuf = fgets(buf, XCMSDB_MAXLINELEN, stream)) != NULL) {
while ((fgets(buf, XCMSDB_MAXLINELEN, stream)) != NULL) {
if ((sscanf(buf, "%s", token)) && (strcmp(token, END_TOKEN) == 0)) {
/*
* Found END_TOKEN so break out of for loop