From 0fbe0f8cff1e624a7989bc61493dd65728bfd00c Mon Sep 17 00:00:00 2001 From: Peter Date: Mon, 23 May 2011 21:54:19 +0200 Subject: [PATCH] make source & writingprogram optional --- tools/osmpbf-outline.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/osmpbf-outline.cpp b/tools/osmpbf-outline.cpp index 5d3d00a..b2089ee 100644 --- a/tools/osmpbf-outline.cpp +++ b/tools/osmpbf-outline.cpp @@ -259,10 +259,12 @@ int main(int argc, char *argv[]) { debug(" required_feature: %s", osmheader.optional_features(i).c_str()); // tell about the writing program - debug(" writingprogram: %s", osmheader.writingprogram().c_str()); + if(osmheader.has_writingprogram()); + debug(" writingprogram: %s", osmheader.writingprogram().c_str()); // tell about the source - debug(" source: %s", osmheader.source().c_str()); + if(osmheader.has_source()) + debug(" source: %s", osmheader.source().c_str()); } else if(blobheader.type() == "OSMData") {