View | Details | Raw Unified | Return to bug 216636 | Differences between
and this patch

Collapse All | Expand All

(-)src/mainAction.cpp (-2 / +2 lines)
Lines 181-187 Link Here
181
//				strcpy(p, optarg);
181
//				strcpy(p, optarg);
182
				pipeLeafs = popen(optarg, "w");
182
				pipeLeafs = popen(optarg, "w");
183
				setlinebuf(pipeLeafs);
183
				setlinebuf(pipeLeafs);
184
				if (pipeLeafs < 0)
184
				if (pipeLeafs == (void *)-1)
185
					warn("coudn't open pipe to: %s\n", optarg);
185
					warn("coudn't open pipe to: %s\n", optarg);
186
				else if (outputLeafs)
186
				else if (outputLeafs)
187
				{
187
				{
Lines 194-200 Link Here
194
					fclose(outputLeafs);
194
					fclose(outputLeafs);
195
				outputLeafs = fopen(optarg, "w");
195
				outputLeafs = fopen(optarg, "w");
196
				setlinebuf(outputLeafs);
196
				setlinebuf(outputLeafs);
197
				if (outputLeafs < 0)
197
				if (outputLeafs == (void *)-1)
198
					warn("open file: %s\n", optarg);
198
					warn("open file: %s\n", optarg);
199
				else if (pipeLeafs)
199
				else if (pipeLeafs)
200
				{
200
				{

Return to bug 216636