File celestia-1.5.1-strcmp.patch of Package celestia
Index: celestia-1.5.1/src/celestia/celx.cpp
===================================================================
--- celestia-1.5.1.orig/src/celestia/celx.cpp
+++ celestia-1.5.1/src/celestia/celx.cpp
@@ -2593,7 +2593,7 @@ static int object_getinfo(lua_State* l)
->getDSOCatalog()->getDSOName(deepsky).c_str());
setTable(l, "catalogNumber", deepsky->getCatalogNumber());
- if (objTypeName == "galaxy")
+ if (strcmp(objTypeName, "galaxy") == 0)
setTable(l, "hubbleType", deepsky->getType());
setTable(l, "absoluteMagnitude", (lua_Number)deepsky->getAbsoluteMagnitude());