summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuel Lidén Borell <samuel@slbdata.se>2010-01-26 20:29:30 +0100
committerSamuel Lidén Borell <samuel@slbdata.se>2010-01-26 20:29:30 +0100
commitf51c70cfe612926faa2e1b3aa18ff6f01b38eb26 (patch)
tree2a9f8115696ba1822aa575355842f48c042ef75c
parent9ecf0464b624f510aa63bc54aa3d17c49eb336b7 (diff)
downloadfribid-f51c70cfe612926faa2e1b3aa18ff6f01b38eb26.tar.gz
fribid-f51c70cfe612926faa2e1b3aa18ff6f01b38eb26.tar.bz2
fribid-f51c70cfe612926faa2e1b3aa18ff6f01b38eb26.zip
Removed some stupid code
-rw-r--r--plugin/ipc.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/plugin/ipc.c b/plugin/ipc.c
index d76276d..e2acdfe 100644
--- a/plugin/ipc.c
+++ b/plugin/ipc.c
@@ -114,9 +114,7 @@ char *version_getVersion(Plugin *plugin) {
PipeInfo pipeinfo;
openVersionPipes(&pipeinfo);
- if (fgets(buff, sizeof(buff), pipeinfo.in) != NULL) {
- buff[strlen(buff)-1] = '\0';
- } else {
+ if (fgets(buff, sizeof(buff), pipeinfo.in) == NULL) {
buff[0] = '\0';
}
closePipes(&pipeinfo);