Commit 865043ea authored by Erkki Seppälä's avatar Erkki Seppälä Committed by Ulrich Sibiller

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

Pointer "pBuf" returned from "fgets(buf, 256, stream)" is never used Reviewed-by: 's avatarAlan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: 's avatarAnder Conselvan de Oliveira <ander.conselvan-de-oliveira@nokia.com> Signed-off-by: 's avatarErkki Seppälä <erkki.seppala@vincit.fi> Signed-off-by: 's avatarAlan Coopersmith <alan.coopersmith@oracle.com> Backported-to-NX-by: 's avatarUlrich Sibiller <uli42@gmx.de>
parent 54550ebb
......@@ -571,7 +571,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;
}
......@@ -666,7 +666,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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment