error return.
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@2190 
91ce42f0-d328-0410-95d8-
f526ca767f89
 
 
 Changes to 1.37.28:
 11Jul05
+- Make sure that bpipe results are zapped even on
+  error return.
 - Lots of documentation.
 - Do not prune volume marked as append when needing a
   new Volume.
 
    int stat1, stat2;
    char *mode;
 
+   if (results) {
+      results[0] = 0;
+   }
    mode = (char *)(results != NULL ? "r" : "");
    bpipe = open_bpipe(prog, wait, mode);
    if (!bpipe) {
       return ENOENT;
    }
    if (results) {
-      results[0] = 0;
       fgets(results, sizeof_pool_memory(results), bpipe->rfd);
       if (feof(bpipe->rfd)) {
          stat1 = 0;