Addressed build warnings in OICMiddle example.
Addressed build warnings in OICMiddle example.

Fixed OICMiddle compile-time warnings regarding potential use of an
uninitialized variable, as well as an ignored getline() result.

Change-Id: I6ce5a7212ea87cfc506cc97ca97a873c308bf17c
Signed-off-by: Ossama Othman <9fe229a4f64a31f6d33078e507d28ffd4b94a1af@intel.com>
Reviewed-on: https://gerrit.iotivity.org/gerrit/955
Reviewed-by: John Light <3905d2955a4a57c4d0bb9934ab738fd24995502f@intel.com>
Tested-by: jenkins-iotivity <09cb29e8a2b473a2c978382eec13ee06fa017bda@opendaylight.org>
Reviewed-by: Erich Keane <ec9f61fe526c14bb62c55d7c978f025ee6b3583d@intel.com>

kartben/iotivity,iotivity/iotivity,tienfuc/iotivity-democlient-snap,rzr/iotivity,tienfuc/iotivity-democlient-snap,rzr/iotivity,santais/iotivity_1.1.0,santais/iotivity_1.1.0,kartben/iotivity,santais/iotivity,WojciechLuczkow/iotivity,iotivity/iotivity,WojciechLuczkow/iotivity,tienfuc/iotivity-democlient-snap,tienfuc/iotivity-democlient-snap,santais/iotivity_1.1,kartben/iotivity,rzr/iotivity,santais/iotivity_1.1.0,WojciechLuczkow/iotivity,tienfuc/iotivity-democlient-snap,WojciechLuczkow/iotivity,iotivity/iotivity,santais/iotivity_1.1.0,santais/iotivity,iotivity/iotivity,iotivity/iotivity,rzr/iotivity,kartben/iotivity,tienfuc/iotivity-democlient-snap,WojciechLuczkow/iotivity,santais/iotivity,tienfuc/iotivity-democlient-snap,santais/iotivity_1.1.0,santais/iotivity_1.1,kartben/iotivity,iotivity/iotivity,santais/iotivity_1.1,santais/iotivity_1.1.0,WojciechLuczkow/iotivity,rzr/iotivity,santais/iotivity_1.1,santais/iotivity_1.1.0,iotivity/iotivity,santais/iotivity_1.1,rzr/iotivity,tienfuc/iotivity-democlient-snap,santais/iotivity,WojciechLuczkow/iotivity,WojciechLuczkow/iotivity,iotivity/iotivity,kartben/iotivity,santais/iotivity_1.1,santais/iotivity,santais/iotivity_1.1,tienfuc/iotivity-democlient-snap,santais/iotivity,tienfuc/iotivity-democlient-snap,rzr/iotivity,santais/iotivity,kartben/iotivity,kartben/iotivity,santais/iotivity_1.1